activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 18, 2024

ShareFile

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
ShareFile(IFile, Roles, Boolean)Shares a file with anyone.
ShareFile(IFile, String, Roles, Boolean)Shares a file with a domain

.

ShareFile(IFile, GranteeType, String, Boolean, Roles, Boolean)Shares a file with the specified recipients.

ShareFile(IFile, Roles, Boolean)

Shares a file with anyone.
public string ShareFile(
	IFile file,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)public string ShareFile(
	IFile file,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
file IFile
The file 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.

ShareFile(IFile, String, Roles, Boolean)

Shares a file with a domain.
public string ShareFile(
	IFile file,
	string domain,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)public string ShareFile(
	IFile file,
	string domain,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
file IFile
The file to share.
domain String
The domain you want to grant access to the file.
file IFile
The file to share.
useDomainAdminAccess Boolean (Optional)

Specifies whether to issue the request as a domain administrator.

ShareFile(IFile, GranteeType, String, Boolean, Roles, Boolean)

Shares a file with the specified recipients.
public string ShareFile(
	IFile file,
	GranteeType shareWith,
	string recipients,
	bool sendNotificationEmail = true,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)public string ShareFile(
	IFile file,
	GranteeType shareWith,
	string recipients,
	bool sendNotificationEmail = true,
	Roles role = Roles.READER,
	bool useDomainAdminAccess = false
)
file IFile
The file to share.
shareWith GranteeType
Specifies who will have access to the file.
recipients String
The email address of the user or group you are granting access to the file.
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 file.

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.