SetUserRoleId
Revision as of 11:11, 12 May 2022 by Administrator (talk | contribs)
[Obsolete - Please use SetResourceTemplateResourceId or User.ResourceTemplateResourceId]
setUserRoleId
Sets the user resource template for the user specified.
Syntax
setUserRoleId(userId, roleId)
Arguments
userId: is a number expression. It is the id of the user.
roleId: is a number expression. It is the id of the user role.
Return type
bool
Example
setUserRoleId(1, 1);
Availability
Version 5.4