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: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
[[Category:Resource_Functions]]

[OBSOLETE - Please use [[UpdateUserResourceIdPermission|UpdateUserResourceIdPermission]]. More detail at [[ConversionMethods|ConversionMethods]]]
 
====updateUserPermission====
====updateUserPermission====


Line 16: Line 15:
''permissions''<nowiki>: Is an array of the following format: {{</nowiki>''useId1, permission1}, {userId2, permission2}, …''}
''permissions''<nowiki>: Is an array of the following format: {{</nowiki>''useId1, permission1}, {userId2, permission2}, …''}


'' userId''i: a numeric (non-decimal) expression. It is the id of a user.
'' 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:


'' permission''i: a string expression. It is the permission for the ith user. It must have one of the following values:
“None” or 0: Remove access from resource


  “Read”
  “Read”

Latest revision as of 02:16, 13 May 2022

[OBSOLETE - Please use UpdateUserResourceIdPermission. More detail at ConversionMethods]

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