Adds user role assignments to a folder
Namespace: ICMeridianAPIAssembly: ICMeridianAPI (in ICMeridianAPI.dll) Version: 1.0.6.0 (1.0.6.0)
public void AssignRoles(
string vaultidentifier,
string folderid,
Object usersOrGroups = null,
Object roleNames = null
)
public void AssignRoles(
string vaultidentifier,
string folderid,
Object usersOrGroups = null,
Object roleNames = null
)
Public Sub AssignRoles ( _
vaultidentifier As String, _
folderid As String, _
Optional usersOrGroups As Object = Nothing, _
Optional roleNames As Object = Nothing _
)
Public Sub AssignRoles ( _
vaultidentifier As String, _
folderid As String, _
Optional usersOrGroups As Object = Nothing, _
Optional roleNames As Object = Nothing _
)
public:
void AssignRoles(
String^ vaultidentifier,
String^ folderid,
Object^ usersOrGroups = nullptr,
Object^ roleNames = nullptr
)
public:
void AssignRoles(
String^ vaultidentifier,
String^ folderid,
Object^ usersOrGroups = nullptr,
Object^ roleNames = nullptr
)
Parameters
- vaultidentifier
- Type:
System String
The vault in which role assignments are to be changed.
- folderid
- Type:
System String
Path or ID of the folder
- usersOrGroups (Optional)
- Type:
System Object
A single string or array of user or group names
- roleNames (Optional)
- Type:
System Object
A single string or array of role names
Adding role assignments means that InheritFromParent will be set to False.
If users and roles are not specified then role assignments are cleared from the folder.
In this case InheritFromParent is not set to True anyway.