RoleAssignments

List role assignments

Changed on

List role assignments for the given organization

get/Organizations/{OrganizationSid}/RoleAssignments

Request

  • Base URL
    https://preview-iam.twilio.com
  • URL
    https://preview-iam.twilio.com/Organizations/{OrganizationSid}/RoleAssignments
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://preview-iam.twilio.com/v1/token

Path parameters

OrganizationSidstring OrganizationSid required
Example:OR33f4f3aa6fffe840d000f8ef22e883db

Query parameters

PageSizeinteger
PageTokenstring
Identitystring Sid
Example:USa36de9717566c7eb6363671f54b87ba9
Scopestring Sid
Example:ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
ResourceTypestring

Filter by resource type for resource-level role assignments

ResourceIdstring

Filter by resource id for resource-level role assignments

Response

Returned list of role assignments

Example response

{
  "content": [
    {
      "sid": "IYc4ddb9d0befdb122b0eff334e3084544",
      "role_sid": "IXc4ddb9d0befdb122b0eff334e3084544",
      "scope": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "identity": "USc4ddb9d0befdb122b0eff334e3084544"
    }
  ]
}

Changes

    • info

      added the new optional query request parameter ResourceId

    • info

      added the new optional query request parameter ResourceType

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status