List an Organization's Users

GET /api/0/organizations/{organization_slug}/users/

Return a list of users that belong to a given organization.

Query Parameters:
  • project (string)

    restrict results to users who have access to a given project ID

Path Parameters:
  • organization_slug (string)

    the slug of the organization for which the users should be listed.

Authentication: required
Method: GET
Path: /api/0/organizations/{organization_slug}/users/

Example

GET /api/0/organizations/the-interstellar-jurisdiction/users/?project=123456 HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 886
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Allow: GET, HEAD, OPTIONS
X-Frame-Options: deny

[
  {
    "dateCreated": "2019-05-09T18:06:01.728Z", 
    "user": { 
      "username": "testEmail@test.com", 
      "lastLogin": "2019-09-16T02:56:06.806Z", 
      "isSuperuser": false, 
      "isManaged": false, 
      "lastActive": "2019-10-08T15:05:38.715Z", 
      "isStaff": false, 
      "id": "433307", 
      "isActive": true, 
      "has2fa": false, 
      "name": "OtherTest McTestuser", 
      "avatarUrl": "https://secure.gravatar.com/avatar/1eb103c0e899f372a85eb0a44f0a0f42?s=32&d=mm", 
      "dateJoined": "2019-05-09T18:06:01.443Z", 
      "emails": [
        { 
          "is_verified": true, 
          "id": "468229", 
          "email": "testEmail@test.com" 
        } 
      ], 
      "avatar": { 
        "avatarUuid": null, 
        "avatarType": "letter_avatar"
      }, 
      "hasPasswordAuth": false, 
      "email": "testEmail@test.com"  
    }, 
    "roleName": "Organization Owner", 
    "expired": false, 
    "id": "9376061", 
    "projects": ["buggy-sentry-project"], 
    "name": "OtherTest McTestuser", 
    "role": "owner", 
    "flags": { 
      "sso:linked": false, 
      "sso:invalid": false 
    }, 
    "email": "testEmail@test.com", 
    "pending": false 
  }, 
  { 
    "dateCreated": "2019-09-30T16:06:51.949Z", 
    "user": { 
      "username": "otherTestEmail@test.com", 
      "lastLogin": "2019-09-30T16:08:10.517Z", 
      "isSuperuser": false, 
      "isManaged": false, 
      "lastActive": "2019-10-02T23:15:43.773Z", 
      "isStaff": false, 
      "id": "518100", 
      "isActive": true, 
      "has2fa": false, 
      "name": "OtherTest McTestuser", 
      "avatarUrl": "https://secure.gravatar.com/avatar/7828bc81ef4bbd6d38d749803e1a02c6?s=32&d=mm", 
      "dateJoined": "2019-09-30T16:08:09.839Z", 
      "emails": [ 
        { 
          "is_verified": true, 
          "id": "562269", 
          "email": "otherTestEmail@test.com" 
        } 
      ], 
      "avatar": { 
        "avatarUuid": null, 
        "avatarType": "letter_avatar" 
      }, 
      "hasPasswordAuth": true, 
      "email": "otherTestEmail@test.com" 
    }, 
    "roleName": "Member", 
    "expired": false, 
    "id": "9496972", 
    "projects": ["buggy-sentry-project"], 
    "name": "OtherTest McTestuser", 
    "role": "member", 
    "flags": { 
      "sso:linked": false, 
      "sso:invalid": false 
    }, 
    "email": "otherTestEmail@test.com", 
    "pending": false 
  } 
]