addUser


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

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.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_User_Customer]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Permission_Role/{SoftLayer_User_Permission_RoleID}/addUser'