Users Resource¶
Update Preferred Culture¶
HTTP Request
PUT /api/users/assign-culture
📋 Description: Assigns a cultural attribute to specified users, enabling enhanced alignment with organizational values and fostering a cohesive workplace environment.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
body |
body |
true |
Request body containing user assignment details, including culture identifiers and associated metadata for effective resource allocation. |
Body Parameters
1{
2 "cultureCode": "string"
3}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Get All Users¶
HTTP Request
GET /api/users
📋 Description: Retrieves a list of users within the system, enabling businesses to manage user access and roles effectively.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
isAvailable |
query |
boolean |
false |
Whether the resource is available |
Default Values¶
Parameter |
Default |
Type |
|---|---|---|
isAvailable |
|
query |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "userName": "string",
7 "firstName": "string",
8 "lastName": "string",
9 "email": "string",
10 "roleIds": [
11 {
12 "id": 0,
13 "createdBy": "string",
14 "createdAt": "2019-08-24T14:15:22Z",
15 "modifiedBy": "string",
16 "modifiedAt": "2019-08-24T14:15:22Z",
17 "roleName": "string",
18 "entity": "string",
19 "new": true
20 }
21 ],
22 "internalTeamNames": [
23 "string"
24 ],
25 "internalTeamIds": [
26 0
27 ],
28 "internalTeamDisplayIds": [
29 "string"
30 ],
31 "premiseIds": [
32 0
33 ],
34 "premiseNames": [
35 "string"
36 ],
37 "userAvailable": true,
38 "temporaryWorkload": 0,
39 "preferredCultureCode": "string"
40 }
41]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing a user profile within the system, encapsulating essential user information and attributes for effective management and interaction across business applications.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» userName |
string |
false |
none |
Name of the user |
» firstName |
string |
false |
none |
Name of the first |
» lastName |
string |
false |
none |
Name of the last |
string |
false |
none |
Email address of the user, used for communication and account verification purposes within the system. |
|
» roleIds |
false |
none |
Array of unique identifiers representing the roles assigned to the user, facilitating role-based access and permissions within the system. |
|
»» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
»» createdBy |
string |
false |
none |
Username of who created this resource |
»» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
»» modifiedBy |
string |
false |
none |
Username of who last modified this resource |
»» modifiedAt |
string(date-time) |
false |
none |
Timestamp when this resource was last modified |
»» roleName |
string |
false |
none |
Name of the role |
»» entity |
string |
false |
none |
Represents the specific role associated with the entity within the organizational structure, facilitating effective resource allocation and management. |
»» new |
boolean |
false |
none |
Indicates whether the role is newly created within the system, facilitating effective management of organizational changes. |
» internalTeamNames |
[string] |
false |
none |
List of names representing the internal teams associated with the user, facilitating effective collaboration and resource allocation within the organization. |
» internalTeamIds |
[integer] |
false |
none |
An array of unique identifiers representing the internal teams associated with the user, facilitating team management and collaboration within the organization. |
» internalTeamDisplayIds |
[string] |
false |
none |
An array of unique identifiers representing the internal teams associated with the user, facilitating streamlined team management and collaboration. |
» premiseIds |
[integer] |
false |
none |
Array of unique identifiers representing the premises associated with the user, facilitating efficient management and tracking of user-related locations. |
» premiseNames |
[string] |
false |
none |
List of names associated with the user’s premises, providing essential context for location-based services and operations. |
» userAvailable |
boolean |
false |
none |
Indicates whether the user is available for assignment or engagement within the system. |
» temporaryWorkload |
integer(int32) |
false |
none |
Represents the temporary workload allocation for the user, measured in integer units, to facilitate effective resource management and planning. |
» preferredCultureCode |
string |
false |
none |
Code for the preferred culture |
Create User¶
HTTP Request
POST /api/users
📋 Description: Creates a new user account in the system, enabling access to platform features and services.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
body |
body |
true |
Request body containing the user profile information, including name, email, and role, necessary for creating a new user account in the system. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "userName": "string",
6 "firstName": "string",
7 "lastName": "string",
8 "email": "string",
9 "roleIds": [
10 {
11 "id": 0,
12 "createdBy": "string",
13 "createdAt": "2019-08-24T14:15:22Z",
14 "modifiedBy": "string",
15 "modifiedAt": "2019-08-24T14:15:22Z",
16 "roleName": "string",
17 "entity": "string",
18 "new": true
19 }
20 ],
21 "internalTeamNames": [
22 "string"
23 ],
24 "internalTeamIds": [
25 0
26 ],
27 "internalTeamDisplayIds": [
28 "string"
29 ],
30 "premiseIds": [
31 0
32 ],
33 "premiseNames": [
34 "string"
35 ],
36 "userAvailable": true,
37 "temporaryWorkload": 0,
38 "preferredCultureCode": "string"
39}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
201 |
Created |
Inline |
Example Responses
1{}
Response Schema
Update User¶
HTTP Request
POST /api/users/{id}
📋 Description: Updates the user information for the specified user ID, enabling organizations to maintain accurate and up-to-date user profiles within the system.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
body |
body |
true |
Request body containing user profile information, including updated personal details and preferences, for the specified user ID. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "userName": "string",
6 "firstName": "string",
7 "lastName": "string",
8 "email": "string",
9 "roleIds": [
10 {
11 "id": 0,
12 "createdBy": "string",
13 "createdAt": "2019-08-24T14:15:22Z",
14 "modifiedBy": "string",
15 "modifiedAt": "2019-08-24T14:15:22Z",
16 "roleName": "string",
17 "entity": "string",
18 "new": true
19 }
20 ],
21 "internalTeamNames": [
22 "string"
23 ],
24 "internalTeamIds": [
25 0
26 ],
27 "internalTeamDisplayIds": [
28 "string"
29 ],
30 "premiseIds": [
31 0
32 ],
33 "premiseNames": [
34 "string"
35 ],
36 "userAvailable": true,
37 "temporaryWorkload": 0,
38 "preferredCultureCode": "string"
39}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1{}
Response Schema
Delete User¶
HTTP Request
DELETE /api/users/{id}
📋 Description: Deletes a user from the system by their unique identifier, ensuring that user data is permanently removed and access is revoked, thereby maintaining data integrity and security.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
204 |
No Content |
None |
Get Users¶
HTTP Request
POST /api/users/search
📋 Description: Submits a search query to locate user profiles based on specified criteria, enabling efficient user management and streamlined access to relevant information.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
pageable |
query |
true |
Indicates whether the search results should be returned in a paginated format, allowing for efficient data retrieval and improved user experience. |
|
entityType |
query |
string |
false |
Type of the entity |
body |
body |
true |
Request body containing user search criteria, including filters such as name, email, and role, to facilitate targeted user retrieval. |
Body Parameters
1{
2 "idIn": [
3 0
4 ],
5 "idNotIn": [
6 0
7 ],
8 "userNameLike": "string",
9 "userAvailable": true,
10 "premiseIdEqualOrNull": 0,
11 "internalTeamsIdEqualOrNull": 0
12}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "totalPages": 0,
3 "totalElements": 0,
4 "pageable": {
5 "paged": true,
6 "unpaged": true,
7 "pageNumber": 0,
8 "pageSize": 0,
9 "offset": 0,
10 "sort": {
11 "unsorted": true,
12 "sorted": true,
13 "empty": true
14 }
15 },
16 "numberOfElements": 0,
17 "first": true,
18 "last": true,
19 "size": 0,
20 "content": [
21 {
22 "id": 0,
23 "createdBy": "string",
24 "createdAt": "2019-08-24T14:15:22Z",
25 "userName": "string",
26 "firstName": "string",
27 "lastName": "string",
28 "email": "string",
29 "roleIds": [
30 {
31 "id": 0,
32 "createdBy": "string",
33 "createdAt": "2019-08-24T14:15:22Z",
34 "modifiedBy": "string",
35 "modifiedAt": "2019-08-24T14:15:22Z",
36 "roleName": "string",
37 "entity": "string",
38 "new": true
39 }
40 ],
41 "internalTeamNames": [
42 "string"
43 ],
44 "internalTeamIds": [
45 0
46 ],
47 "internalTeamDisplayIds": [
48 "string"
49 ],
50 "premiseIds": [
51 0
52 ],
53 "premiseNames": [
54 "string"
55 ],
56 "userAvailable": true,
57 "temporaryWorkload": 0,
58 "preferredCultureCode": "string"
59 }
60 ],
61 "number": 0,
62 "sort": {
63 "unsorted": true,
64 "sorted": true,
65 "empty": true
66 },
67 "empty": true
68}
Find Users By Team¶
HTTP Request
POST /api/users/findUsersByTeam
📋 Description: Posts a request to retrieve a list of users associated with a specified team, facilitating team management and resource allocation within the organization.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
body |
body |
true |
Request body containing the team identifier and optional filters to retrieve user details associated with a specific team. |
Body Parameters
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "displayId": "string",
7 "name": "string",
8 "email": "string",
9 "phone": "string",
10 "manager": "string",
11 "requestCategoryName": [
12 "string"
13 ],
14 "requestCategoryId": [
15 0
16 ],
17 "requestCategoryDisplayId": [
18 "string"
19 ],
20 "description": "string",
21 "internalTeamUser": [
22 0
23 ],
24 "members": 0,
25 "mainAssets": [
26 0
27 ],
28 "premiseNames": [
29 "string"
30 ],
31 "internalTeamAvailable": true,
32 "premiseIds": [
33 0
34 ]
35 }
36]
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 "string"
3]
Response Schema
Get User Work Loads¶
HTTP Request
GET /api/users/workload
📋 Description: Retrieves the current workload distribution for users, enabling organizations to assess resource allocation and optimize team performance.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
userIds |
query |
array[integer] |
true |
Array of unique identifiers for users whose workload data is being requested, enabling targeted retrieval of specific user information. |
entityType |
query |
string |
true |
Type of the entity |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1{
2 "property1": 0,
3 "property2": 0
4}
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
» additionalProperties |
integer(int32) |
false |
none |
none |
Validate User Workload¶
HTTP Request
GET /api/users/validateWorkload
📋 Description: Validates the workload of users to ensure compliance with organizational standards and resource allocation, facilitating effective workforce management.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
workLoad |
query |
integer(int32) |
true |
Represents the total workload assigned to a user, enabling validation of resource allocation and efficiency within the organization. |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
boolean |
Example Responses
1true