Difference between revisions of "UpdateGroupPermission"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:Resource_Functions]]

+
[OBSOLETE - Please use [[UpdateGroupResourceIdPermission|UpdateGroupResourceIdPermission]]. More detail at [[ConversionMethods|ConversionMethods]] ]
  
 
====updateGroupPermission====
 
====updateGroupPermission====
Line 19: Line 19:
  
 
'' permission''i: a string expression. It is the permission for the ith group. It must have one of these value:
 
'' permission''i: a string expression. It is the permission for the ith group. It must have one of these value:
 +
 +
“None” or 0: Remove access from resource
  
 
  “Read”
 
  “Read”

Latest revision as of 03:26, 13 May 2022

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

updateGroupPermission

Updates the group permissions of a specific resource.

Syntax

updateGroupPermission(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: {{groupId1, permission1}, {groupId2, permission2}, …}

groupIdi: a numeric (non-decimal) expression. It is the id of a group.

permissioni: a string expression. It is the permission for the ith group. It must have one of these value:

“None” or 0: Remove access from resource
“Read”
“Write”
“FullControl” 

Return type

empty

Examples

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

updateGroupPermission(2188468, permissions);

Availability

Version 4.8