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.

Group getAllGroupResourceIdByUserResourceId: Difference between revisions

From Catglobe Wiki
Nguyentanphong (talk | contribs)
Created page with "{{Function_Template|Name=Group_getAllGroupResourceIdByUserResourceId|ReturnType=Array |Parameters= |Name=<nowiki>User resource id</nowiki>|ConstantType=Number }}"
 
Tungocman (talk | contribs)
No edit summary
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function_Template|Name=Group_getAllGroupResourceIdByUserResourceId|ReturnType=Array
{{HelpFiles}}
|Parameters=
= Group_getAllGroupResourceIdByUserResourceId =
|Name=<nowiki>User resource id</nowiki>|ConstantType=Number
 
}}
Get resource id of groups that user is member of. <br>
This function requires:
- Users have resource access (at lease "Read") on the user account they used in this function
- Users have navigation access on the "User Module" && the setting "Exporting the list of groups to excel" is checked
 
=== Syntax  ===
 
Group_getAllGroupResourceIdByUserResourceId(UserResourceID) <br>
 
=== Arguments  ===
 
UserResourceID: is a number. It is resource id of user. <br>  
 
=== Return type  ===
 
An array, which contain the resource id of groups that user is member of. <br>  
 
=== Examples  ===
 
array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087); <br>print(groupRID);&nbsp;&nbsp;&nbsp;&nbsp; // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394} <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
 
 
__NOTOC__
 
[[Category:Group_Functions]]

Latest revision as of 04:50, 12 March 2015

Group_getAllGroupResourceIdByUserResourceId

Get resource id of groups that user is member of.
This function requires:

- Users have resource access (at lease "Read") on the user account they used in this function
- Users have navigation access on the "User Module" && the setting "Exporting the list of groups to excel" is checked

Syntax

Group_getAllGroupResourceIdByUserResourceId(UserResourceID)

Arguments

UserResourceID: is a number. It is resource id of user.

Return type

An array, which contain the resource id of groups that user is member of.

Examples

array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087);
print(groupRID);     // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394}