activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 6, 2024

ShareFolder

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?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.