Difference between revisions of "Group getAllGroupResourceIdByUserResourceId"
(→Arguments) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | = Group_getAllGroupResourceIdByUserResourceId = | + | {{HelpFiles}} |
+ | = Group_getAllGroupResourceIdByUserResourceId = | ||
− | Get | + | Get resource id of groups that user is member of. <br> |
− | <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 === | + | === Syntax === |
− | Group_getAllGroupResourceIdByUserResourceId(UserResourceID) | + | Group_getAllGroupResourceIdByUserResourceId(UserResourceID) <br> |
− | <br> | ||
− | === Arguments === | + | === Arguments === |
− | UserResourceID: is a number. It is resource id of user. | + | UserResourceID: is a number. It is resource id of user. <br> |
− | <br> | ||
− | === Return type === | + | === Return type === |
− | |||
− | |||
− | + | An array, which contain the resource id of groups that user is member of. <br> | |
− | + | === Examples === | |
− | __NOTOC__ | + | array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087); <br>print(groupRID); // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394} <br> <br> |
+ | |||
+ | |||
+ | __NOTOC__ | ||
[[Category:Group_Functions]] | [[Category:Group_Functions]] |
Latest revision as of 05: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}