Difference between revisions of "SetUserRoleId"
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:User_Functions]] | [[Category:User_Functions]] | ||
− | + | [Obsolete - Please use [[SetResourceTemplateResourceId|SetResourceTemplateResourceId]] or [[User_class|User.ResourceTemplateResourceId]]. More detail at [[ConversionMethods|ConversionMethods]] ] | |
====setUserRoleId==== | ====setUserRoleId==== |
Latest revision as of 03:31, 13 May 2022
[Obsolete - Please use SetResourceTemplateResourceId or User.ResourceTemplateResourceId. More detail at ConversionMethods ]
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