Organisations
Get users in an organisation
Mock APIs
Teams
Organisations
Data sources
Database connections
Usage
Access control
Stub Mappings
- GETGet all stub mappings
- POSTCreate a new stub mapping
- DELDelete all stub mappings
- POSTReset stub mappings
- POSTPersist stub mappings
- POSTImport stub mappings
- GETGet stub mapping by ID
- PUTUpdate a stub mapping
- DELDelete a stub mapping
- POSTFind stub mappings matching metadata
- POSTDelete stub mappings matching metadata
Requests
OpenAPI
Imports
Organisations
Get users in an organisation
Gets the users under a specific organisation, optionally filtered by username/email address.
GET
/
v1
/
organisations
/
{organisationId}
/
users
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/users \
--header 'Authorization: Basic <encoded-value>'
{
"users": [
{
"id": "9gd5l",
"username": "docs@example.com",
"avatarUrl": "https://s.gravatar.com/avatar/0dc7361faa5dcde8ee7789f06074bb30?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fdo.png",
"emailAddress": "docs@example.com",
"links": {
"self": "/v1/users/9gd5l",
"features": "/v1/users/9gd5l/features",
"progress": "/v1/users/9gd5l/progress",
"teams": "/v1/users/9gd5l/teams",
"mockApis": "/v1/users/9gd5l/apis",
"apiTemplateCatalogues": "/v1/users/9gd5l/api-template-catalogues",
"apiTemplates": "/v1/users/9gd5l/api-templates",
"dataSources": "/v1/users/9gd5l/data-sources",
"keys": "/v1/users/9gd5l/jwks",
"organisation": "/v1/organisations/mgk7g",
"aclSubject": "/v1/acl/subjects/9gd5l",
"aclObject": "/v1/acl/objects/4kg32"
}
}
]
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The ID of the organisation
Required string length:
5 - 10
Query Parameters
The search query to filter by. Partially matched against username and email address.
Response
200
application/json
200 response
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/organisations/{organisationId}/users \
--header 'Authorization: Basic <encoded-value>'
{
"users": [
{
"id": "9gd5l",
"username": "docs@example.com",
"avatarUrl": "https://s.gravatar.com/avatar/0dc7361faa5dcde8ee7789f06074bb30?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fdo.png",
"emailAddress": "docs@example.com",
"links": {
"self": "/v1/users/9gd5l",
"features": "/v1/users/9gd5l/features",
"progress": "/v1/users/9gd5l/progress",
"teams": "/v1/users/9gd5l/teams",
"mockApis": "/v1/users/9gd5l/apis",
"apiTemplateCatalogues": "/v1/users/9gd5l/api-template-catalogues",
"apiTemplates": "/v1/users/9gd5l/api-templates",
"dataSources": "/v1/users/9gd5l/data-sources",
"keys": "/v1/users/9gd5l/jwks",
"organisation": "/v1/organisations/mgk7g",
"aclSubject": "/v1/acl/subjects/9gd5l",
"aclObject": "/v1/acl/objects/4kg32"
}
}
]
}