UiPath Documentation
activities
latest
false
Productivity activities

ShareFolder

Shares a file with anyone, with a domain, or with the specified recipients.

Shares a file with anyone, with a domain, or with the specified recipients.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads​

OverloadDescription
ShareFolder(IFolder, Roles, Boolean)Shares a folder with anyone
ShareFolder(IFolder, String, Roles, Boolean)Shares a folder with a domain
ShareFolder(IFolder, GranteeType, String, Boolean, Roles, Boolean)Shares a folder with the specified recipients

ShareFolder(IFolder, Roles, Boolean)​

Shares a folder with anyone.

public string ShareFolder(
	IFolder folder,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
public string ShareFolder(
	IFolder folder,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)

folder IFolder : The folder to share.

role Roles (Optional) : The type of permission that will be granted.

useDomainAdminAccess Boolean (Optional) : Specifies whether to issue the request as a domain administrator.

ShareFolder(IFolder, String, Roles, Boolean)​

Shares a folder with a domain.

public string ShareFolder(
	IFolder folder,
	string domain,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
public string ShareFolder(
	IFolder folder,
	string domain,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)

folder IFolder : The folder to share.

domain String : The domain you want to grant access to the folder.

role Roles (Optional) : The type of permission that will be granted.

useDomainAdminAccess Boolean (Optional) : Specifies whether to issue the request as a domain administrator.

ShareFolder(IFolder, GranteeType, String, Boolean, Roles, Boolean)​

Shares a folder with the specified recipients.

public string ShareFolder(
	IFolder folder,
	GranteeType shareWith,
	string recipients,
	bool sendNotificationEmail = true,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
public string ShareFolder(
	IFolder folder,
	GranteeType shareWith,
	string recipients,
	bool sendNotificationEmail = true,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)

folder IFolder : The folder to share.

shareWith GranteeType : Specifies who will have access to the folder.

recipients String : The email address of the user or group you are granting access to the folder.

sendNotificationEmail Boolean (Optional) : Specifies whether to send a notification email.

role Roles (Optional) : The type of permission that will be granted.

useDomainAdminAccess Boolean (Optional) : Specifies whether to issue the request as a domain administrator.

Return value​

String - The web URL of the shared folder.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated