subscription_member_role_list ()
Function prototype | team_member_role_list ( session, [team], [member] ) |
---|---|
API Version | All |
SOAP, REST (Since API Version 2.7.31) |
Description
Returns the list of ROLES that can be assigned to the members of a SUBSCRIPTION
The ROLES returned by this function can be used in other API functions like subscription_member_set () to assign ROLES to the member of a SUBSCRIPTION.
Note that the ROLES that can be assigned to a member of a SUBSCRIPTION are only those ROLES that the member has already in the TEAM OWNER of the SUBSCRIPTION. For example, if a person is member of a TEAM called “Linkcare” with roles “Staff” and “Case Manager”, then it is only possible to assign one of those ROLES as member of any SUBSCRIPTION owned by “Linkcare”. In this example, it would not be possible to assign the ROLE “Supervisor” to that member,
Input parameters: |
|
Output parameters: |
|
Request example
team_member_role_list(“LCAAAAAAAAAAAA”, 1, "USER|23222")
Response
The response format is XML when the function has been invoked via the SOAP API, and JSON when it has been invoked via the REST API
Return Error codes
ERROR CODE |
|
---|---|
INVALID_TOKEN | The session token provided is not valid |
TEAM.NOT_FOUND | The parent TEAM of the SUBSCRIPTION was not found |
SUBSCRIPTION.NOT_FOUND | The SUBSCRIPTION was not found |