---
descriptions:
  list_role_assignments:
    organization_membership_id: The ID of the organization membership.
    limit: 'Maximum number of records to return (default 10, max 100).'
    before: Cursor for pagination (before).
    after: Cursor for pagination (after).
    order: Sort order (asc or desc).
    data: 'Array of [Role Assignment](/reference/fga/role-assignment) objects.'
reference:
  curl:
    - key: list_role_assignments
      id: list_role_assignments
      url: /reference/fga/role-assignment/list
      title: >-
        /authorization/organization_memberships/:organization_membership_id/role_assignments
      type: GET
      parameters:
        - key: organization_membership_id
          type: string
          description: (list_role_assignments.organization_membership_id)
        - key: limit
          type: number
          optional: true
          description: (list_role_assignments.limit)
        - key: before
          type: string
          optional: true
          description: (list_role_assignments.before)
        - key: after
          type: string
          optional: true
          description: (list_role_assignments.after)
        - key: order
          type: '"asc" | "desc"'
          optional: true
          description: (list_role_assignments.order)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: data
              type: array
              description: (list_role_assignments.data)
            - key: list_metadata
              type: object
              properties:
                - key: before
                  type: string | null
                - key: after
                  type: string | null
  js:
    - key: listRoleAssignments
      id: list_role_assignments
      url: /reference/fga/role-assignment/list
      title: authorization.listRoleAssignments()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: organizationMembershipId
              type: string
              description: (list_role_assignments.organization_membership_id)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: data
              type: 'RoleAssignment[]'
              description: (list_role_assignments.data)
            - key: listMetadata
              type: ListMetadata
originalPath: .tmp-workos-clone/packages/docs/content/reference/fga/role-assignment/list.mdx
---

## List role assignments

List all role assignments for an organization membership. This returns all roles that have been assigned to the user on resources, including organization-level and sub-resource roles.

<CodeBlock referenceId="list_role_assignments">
  <CodeBlockTab title="Request" file="list-role-assignments-request" />
  <CodeBlockTab title="Response" file="list-role-assignments-response" />
</CodeBlock>
