Create Organization Sharing Link
Create an organization or anonymous sharing link for a drive item in OneDrive.
Options
Field | Definition | Type | Required |
---|---|---|---|
Source |
Choose a source:
|
Dropdown | TRUE |
Scope |
Choose a type of scope for the sharing link:
|
DropDown | TRUE |
Input
Field | Definition | Type | Required |
---|---|---|---|
Drive | |||
Drive ID |
Unique ID for the drive requested. Appears when |
String | TRUE |
Group | |||
Group ID |
Unique ID for the group which owns the document library. Appears when |
String | TRUE |
User | |||
User ID |
Unique ID for the user object who owns the drive item. Appears when |
String | TRUE |
Drive Item | |||
File or Folder ID | Unique ID of the file or folder. | String | TRUE |
Permissions | |||
Roles |
Type of permission for the role:
|
Dropdown | TRUE |
Password |
Password of the sharing link that is set by the creator.
Appears when |
String | FALSE |
Expiration Date |
Indicates the expiration time of the permission. For example, yyyy-MM-ddTHH:mm:ssZ. Appears when |
Date and Time | FALSE |
Output
Field | Definition | Type |
---|---|---|
Sharing Link | Sharing link that can be used to access this shared item. | String |
Permissions | ||
Permission ID | Unique identifier of the permission among all permissions on the item. | String |
Roles | The type of user permission. | List of Strings |
Link | Provides the link details of the current permission, if it is a link type permissions. | String |
Expiration Date |
Indicates the expiration time of the permission. For example, yyyy-MM-ddTHH:mm:ssZ. |
Date and Time |
Has Password? | True if password is set for this permission; otherwise False . |
Boolean |
Raw Data | Raw JSON payload returned from the Microsoft Graph API for this particular action. | Object |
Additional information
By default, you cannot create an anonymous type sharing link for a file or folder in a group. You can only create an anonymous sharing link of file or folder in an organization.
Related topics
OneDrive connector