removeUser


SoftLayer_User_Permission_Role::removeUser

Unassign a user customer from the role.

Description

Unassigns a SoftLayer_User_Customer object from the role.

Parameters

Name Type Description
user SoftLayer_User_Customer Remove role from provided user.

Required Headers

Optional Headers

  • None

Return Values

  • void

Error Handling

  • Throws the exception “Can’t remove 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}/removeUser'