Toggle Navigation
SoftLayer API
Articles
Documentation
Go
Java
Perl
PHP
Python
Rest
Ruby
Tools
addUser
Classes
SoftLayer_User_Permission_Role
Tags
method
sldn
user
Services
"SoftLayer_"
prefix removed for readability.
Services or Datatypes go here
SoftLayer_User_Permission_Role
::addUser
Assign a user customer to the role.
Description
Assigns a SoftLayer_User_Customer object to the role.
Parameters
Name
Type
Description
user
SoftLayer_User_Customer
Add role to provided user.
Required Headers
Authenticate
SoftLayer_User_Permission_RoleInitParameters
Optional Headers
None
Return Values
void
Error Handling
Throws the exception “Can’t add user to role: Permission Denied.” if a customer user attempts this request without the proper permission.
Throws the exception “Invalid user” if the user customer does not exist.