Assigns a role to a user. The role may specify either a Role ID, or the "Pretty Name" (display name) of the Role, provided that it can be unambiguously converted to a single Role ID. (If it cannot be converted to an ID, or the ID given is not found, a ValueError is raised.)
| Name | Type | Description |
|---|---|---|
| skey | string | |
| name | string |
The ID of the user to add the role to. |
| role | string |
The ID or display name of the role to add. |
The assignRoleToUser method returns zero (an integer).
© Copyright 1997-2007 Journyx