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.

UpdateUserResourceIdPermission

From Catglobe Wiki
Revision as of 04:08, 28 April 2020 by Administrator (talk | contribs) (Created page with "Category:Resource_Functions {{HelpFiles}} = updateUserResourceIdPermission = Grant users have permission to a resource == Syntax == updateUserResourceIdPermission(res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


updateUserResourceIdPermission

Grant users have permission to a resource

Syntax

updateUserResourceIdPermission(resourceRId, userPermission);

Arguments

resourceRId: number. Resource Id of a resource

userPermission: Dictionary for user permission. EX: {userRId1: permission, userRId2: permission}.

Permission constant:

  • Resource_Permission_None or 0: Remove access from resource
  • Resource_Permission_Read or 2: "Read"
  • Resource_Permission_Write or 4: "Write"
  • Resource_Permission_FullControl or 6: "FullControl"

Return type

Empty

Example

number resourceRId = 15860001;  
number userRId1 = 15860010;
number userRId2 = 15864858;
number userRId3 = 15864853;
updateUserResourceIdPermission(resourceRId,{userRId1:2,userRId2:4,userRId3:6});