users.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "get": {
  3. "tags": ["Organizations"],
  4. "description": "Return a list of users that belong to a given organization.",
  5. "operationId": "List an Organization's Users",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization the event ID should be looked up in.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "project",
  18. "in": "query",
  19. "description": "Restrict results to users who have access to a given project ID",
  20. "schema": {
  21. "type": "string"
  22. }
  23. }
  24. ],
  25. "responses": {
  26. "200": {
  27. "description": "Success",
  28. "content": {
  29. "application/json": {
  30. "schema": {
  31. "$ref": "../../components/schemas/users.json#/Users"
  32. },
  33. "example": [
  34. {
  35. "dateCreated": "2019-05-09T18:06:01.728Z",
  36. "user": {
  37. "username": "testEmail@test.com",
  38. "lastLogin": "2019-09-16T02:56:06.806Z",
  39. "isSuperuser": false,
  40. "isManaged": false,
  41. "lastActive": "2019-10-08T15:05:38.715Z",
  42. "isStaff": false,
  43. "id": "433307",
  44. "isActive": true,
  45. "has2fa": false,
  46. "name": "OtherTest McTestuser",
  47. "avatarUrl": "https: //secure.gravatar.com/avatar/1eb103c0e899f372a85eb0a44f0a0f42?s=32&d=mm",
  48. "dateJoined": "2019-05-09T18:06:01.443Z",
  49. "emails": [
  50. {
  51. "is_verified": true,
  52. "id": "468229",
  53. "email": "testEmail@test.com"
  54. }
  55. ],
  56. "avatar": {
  57. "avatarUuid": null,
  58. "avatarType": "letter_avatar"
  59. },
  60. "hasPasswordAuth": false,
  61. "email": "testEmail@test.com"
  62. },
  63. "roleName": "Organization Owner",
  64. "expired": false,
  65. "id": "9376061",
  66. "projects": ["buggy-sentry-project"],
  67. "name": "OtherTest McTestuser",
  68. "role": "owner",
  69. "flags": {
  70. "sso: linked": false,
  71. "sso: invalid": false
  72. },
  73. "email": "testEmail@test.com",
  74. "pending": false
  75. }
  76. ]
  77. }
  78. }
  79. },
  80. "403": {
  81. "description": "Forbidden"
  82. },
  83. "401": {
  84. "description": "Unauthorized"
  85. },
  86. "404": {
  87. "description": "Not Found"
  88. }
  89. },
  90. "security": [
  91. {
  92. "auth_token": ["org: read"]
  93. }
  94. ]
  95. }
  96. }