User Spec Open API (1.0.0)
Download OpenAPI specification:Download
User Spec Open API
Save the realm.
Authorizations:
Request Body schema: application/json
editUsernameAllowed | boolean |
enabled required | boolean |
loginWithEmailAllowed | boolean |
name required | string |
registrationAllowed | boolean |
registrationEmailAsUsername | boolean |
resetPasswordAllowed | boolean |
realmManagementPolicy | string Enum: "AZURE" "VDX" How we are going to managing this realm. CAN NOT be updated. |
Responses
Request samples
- Payload
{- "editUsernameAllowed": true,
- "enabled": true,
- "loginWithEmailAllowed": true,
- "name": "quarkus",
- "registrationAllowed": true,
- "registrationEmailAsUsername": true,
- "resetPasswordAllowed": true,
- "realmManagementPolicy": "AZURE"
}
Response samples
- 201
{- "id": "7krc96e2a-06f0-11eb-vdc1-0242ac120002",
- "editUsernameAllowed": true,
- "enabled": true,
- "loginWithEmailAllowed": true,
- "name": "example",
- "registrationAllowed": true,
- "registrationEmailAsUsername": true,
- "resetPasswordAllowed": true,
- "realmManagementPolicy": "VDXONIAM",
- "createdAt": "2022-01-25T10:01:33Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
Get the realm. It will not include nested information like User.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
query Parameters
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
{- "id": "7krc96e2a-06f0-11eb-vdc1-0242ac120002",
- "editUsernameAllowed": true,
- "enabled": true,
- "loginWithEmailAllowed": true,
- "name": "example",
- "registrationAllowed": true,
- "registrationEmailAsUsername": true,
- "resetPasswordAllowed": true,
- "realmManagementPolicy": "VDXONIAM",
- "createdAt": "2022-01-25T10:01:33Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
Update the information of the realm. Any groups, users or roles information in the representation will be ignored.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
Request Body schema: application/json
editUsernameAllowed | boolean |
enabled required | boolean |
loginWithEmailAllowed | boolean |
name required | string |
registrationAllowed | boolean |
registrationEmailAsUsername | boolean |
resetPasswordAllowed | boolean |
realmManagementPolicy | string Enum: "AZURE" "VDX" How we are going to managing this realm. CAN NOT be updated. |
Responses
Request samples
- Payload
{- "editUsernameAllowed": true,
- "enabled": true,
- "loginWithEmailAllowed": true,
- "name": "quarkus",
- "registrationAllowed": true,
- "registrationEmailAsUsername": true,
- "resetPasswordAllowed": true,
- "realmManagementPolicy": "AZURE"
}
Response samples
- 200
{- "id": "7krc96e2a-06f0-11eb-vdc1-0242ac120002",
- "editUsernameAllowed": true,
- "enabled": true,
- "loginWithEmailAllowed": true,
- "name": "example",
- "registrationAllowed": true,
- "registrationEmailAsUsername": true,
- "resetPasswordAllowed": true,
- "realmManagementPolicy": "VDXONIAM",
- "createdAt": "2022-01-25T10:01:33Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
Get groups for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
query Parameters
object (PageRequest) Example: page=3&size=50&sort=createdAt,DESC | |
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
- 206
{- "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z",
- "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-20T11:12:28Z",
- "updatedAt": "2022-01-25T12:00:33Z"
}
]
}
]
}
Create a group for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
Request Body schema: application/json
name required | string |
Array of objects (RoleResponse) | |
Array of objects (UserResponse) |
Responses
Request samples
- Payload
{- "name": "admins",
- "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002"
}
], - "users": [
- {
- "id": "cdr6e02a-3b9a-11eb-adc1-0242ac120002"
}
]
}
Response samples
- 201
{- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z",
- "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-20T11:12:28Z",
- "updatedAt": "2022-01-25T12:00:33Z"
}
]
}
Get a specific group for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
groupId required | string Example: 562fe02a-3b9a-11eb-adc1-0242ac120002 The id of the group. |
query Parameters
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
{- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z",
- "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-20T11:12:28Z",
- "updatedAt": "2022-01-25T12:00:33Z"
}
]
}
Update the information of the group. Any user information in the representation will be ignored.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
groupId required | string Example: 562fe02a-3b9a-11eb-adc1-0242ac120002 The id of the group. |
Request Body schema: application/json
name required | string |
Array of objects (RoleResponse) | |
Array of objects (UserResponse) |
Responses
Request samples
- Payload
{- "name": "admins",
- "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002"
}
], - "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003s"
}
]
}
Response samples
- 200
{- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z",
- "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-20T11:12:28Z",
- "updatedAt": "2022-01-25T12:00:33Z"
}
]
}
Add or remove roles from group
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
groupId required | string Example: 562fe02a-3b9a-11eb-adc1-0242ac120002 The id of the group. |
Request Body schema: application/json
Responses
Request samples
- Payload
[- "string"
]
Get users for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
query Parameters
object (PageRequest) Example: page=3&size=50&sort=createdAt,DESC | |
userTypes | Array of strings (UserTypes) Items Enum: "internal" "external" Example: userTypes=internal Which types to include |
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
- 206
{- "pageable": {
- "offset": 100,
- "pageNumber": 3,
- "pageSize": 50,
- "paged": true,
- "unpaged": false,
- "last": false,
- "totalPages": 12,
- "totalElements": 597,
- "size": 50,
- "number": 3,
- "first": false,
- "numberOfElements": 50,
- "empty": false,
- "sort": {
- "empty": false,
- "sorted": true,
- "unsorted": false
}
}, - "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-20T11:12:28Z",
- "updatedAt": "2022-01-25T12:00:33Z"
}
]
}
Create a user for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
Request Body schema: application/json
username required | string |
email required | string |
firstName | string |
lastName | string |
enabled | boolean |
type | string (UserType) Enum: "internal" "external" Determines the type of the user |
Array of objects (RoleResponse) | |
Array of objects (GroupResponse) |
Responses
Request samples
- Payload
{- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "type": "internal",
- "roles": [
- {
- "id": "ghi6e02a-3b9a-76bb-cvl1-0242ac126740",
- "name": "admin"
}
], - "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins"
}
]
}
Response samples
- 201
{- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "userRoles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groupRoles": [
- {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}, - {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "developers",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z"
}
]
}
Get a specific user for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
userId required | string Example: we1fe02a-3b9a-11eb-adc1-0242ac120002 The id of the user. |
query Parameters
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
{- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "userRoles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groupRoles": [
- {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}, - {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "developers",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z"
}
]
}
Update the information of the user.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
userId required | string Example: we1fe02a-3b9a-11eb-adc1-0242ac120002 The id of the user. |
Request Body schema: application/json
username required | string |
email required | string |
firstName | string |
lastName | string |
enabled | boolean |
type | string (UserType) Enum: "internal" "external" Determines the type of the user |
Array of objects (RoleResponse) | |
Array of objects (GroupResponse) |
Responses
Request samples
- Payload
{- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "type": "internal",
- "roles": [
- {
- "id": "ghi6e02a-3b9a-76bb-cvl1-0242ac126740",
- "name": "admin"
}
], - "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "admins"
}
]
}
Response samples
- 200
{- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "userRoles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groupRoles": [
- {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}, - {
- "id": "rt66e02a-v49a-11cq-adv8-0242ac12mnt5",
- "name": "developer",
- "description": "a developer in the org",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z"
}
], - "groups": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac120002",
- "name": "developers",
- "createdAt": "2022-01-20T09:12:28Z",
- "updatedAt": "2022-01-25T14:00:33Z"
}
]
}
Add or remove roles from user
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
groupId required | string Example: 562fe02a-3b9a-11eb-adc1-0242ac120002 The id of the group. |
Request Body schema: application/json
Responses
Request samples
- Payload
[- "string"
]
Add or remove group from user
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
groupId required | string Example: 562fe02a-3b9a-11eb-adc1-0242ac120002 The id of the group. |
Request Body schema: application/json
Responses
Request samples
- Payload
[- "string"
]
Get roles for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
query Parameters
object (PageRequest) Example: page=3&size=50&sort=createdAt,DESC | |
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
- 206
{- "pageable": {
- "offset": 100,
- "pageNumber": 3,
- "pageSize": 50,
- "paged": true,
- "unpaged": false,
- "last": false,
- "totalPages": 12,
- "totalElements": 597,
- "size": 50,
- "number": 3,
- "first": false,
- "numberOfElements": 50,
- "empty": false,
- "sort": {
- "empty": false,
- "sorted": true,
- "unsorted": false
}
}, - "roles": [
- {
- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z",
- "users": [
- {
- "id": "5ac96e2a-06f0-11eb-adc1-0242ac12003",
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true,
- "createdAt": "2022-01-26T11:02:47Z",
- "updatedAt": "2022-01-26T11:02:47Z"
}
]
}
]
}
Create a role for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
Request Body schema: application/json
name required | string |
description | string |
Responses
Request samples
- Payload
{- "name": "manager",
- "description": "manager of the company"
}
Response samples
- 201
{- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z",
- "users": [
- {
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true
}
]
}
Get a specific role for a specific realm.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
roleId required | string Example: 781fe02a-3b9a-11eb-adc1-0242ac120002 The id of the role. |
query Parameters
expand | Array of strings (Expands) Items Enum: "group" "role" "user" Which entites to expand |
Responses
Response samples
- 200
{- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z",
- "users": [
- {
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true
}
]
}
Update the information of the role.
Authorizations:
path Parameters
realmId required | string Example: 280fe02a-3b9a-11eb-adc1-0242ac120002 The id of the realm. |
roleId required | string Example: 781fe02a-3b9a-11eb-adc1-0242ac120002 The id of the role. |
Request Body schema: application/json
name required | string |
description | string |
Responses
Request samples
- Payload
{- "name": "manager",
- "description": "manager of the company"
}
Response samples
- 200
{- "id": "ghi6e02a-3b9a-11eb-adc1-0242ac120002",
- "name": "admin",
- "description": "manager of the users",
- "createdAt": "2022-01-20T09:14:11Z",
- "updatedAt": "2022-01-25T10:01:33Z",
- "users": [
- {
- "username": "sph1",
- "email": "sph1@sphereon.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "enabled": true
}
]
}