Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UpdateUserPermission

From Catglobe Wiki
Revision as of 03:09, 14 December 2011 by Cg_pham (talk | contribs)



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}, …}

userIdi: a numeric (non-decimal) expression. It is the id of a user.

permissioni: a string expression. It is the permission for the ith user. It must have one of the following values:

“Read”
"Write”
"FullControl”

Return type

empty

Examples

array permissions = {{3, "FullControl"}, {4, "Read"}};

updateUserPermission(2188468, permissions);

Availability

Version 4.8