Click or drag to resize

IAccessManagementGrantUsersAccessToFolder Method

Grants users access to a folder. Can only be called by an admin or a creator Throws an exception on an invalid folderId or on any invalid userIds

Namespace:  Panopto.Server.Services.PublicAPI.V40
Assembly:  DataLib (in DataLib.dll) Version: 13.0.0.0 (13.0.0.00000)
Syntax
C#
void GrantUsersAccessToFolder(
	AuthenticationInfo auth,
	Guid folderId,
	IEnumerable<Guid> userIds,
	AccessRole role
)

Parameters

auth
Type: Panopto.Server.Services.PublicAPI.V40AuthenticationInfo
Used to authenticate the current user. Can be null if an auth cookie is passed
folderId
Type: SystemGuid
The ID of the folder to grant access to
userIds
Type: System.Collections.GenericIEnumerableGuid
The IDs of the users to grant access to
role
Type: Panopto.Server.Services.PublicAPI.V40AccessRole
The role to grant the users access as. Either creator or viewer
See Also