Difference between revisions of "UpdateUserPermission"
Line 22: | Line 22: | ||
“None” or 0: Remove access from resource | “None” or 0: Remove access from resource | ||
− | “Read” | + | “Read” |
"Write” | "Write” |
Revision as of 03:33, 1 June 2018
updateUserPermission
Updates the user permissions of a specific resource.
Syntax
updateUserPermission(resourceUniqueId, permissions)
Arguments
resourceUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of a resource.
permissions: Is an array of the following format: {{useId1, permission1}, {userId2, permission2}, …}
userId: a numeric (non-decimal) expression. It is the id of a user.
permission: a string expression. It is the permission for the the user. It must have one of the following values:
“None” or 0: Remove access from resource
“Read”
"Write”
"FullControl”
Return type
empty
Examples
array permissions = {{3, "FullControl"}, {4, "Read"}};
updateUserPermission(2188468, permissions);
Availability
Version 4.8