User¶
Update User Preferred Culture¶
HTTP Request
POST /api/user/{userId}/assign-culture
📋 Description: Assigns a specific culture to the user identified by the userId, enabling personalized engagement and alignment with organizational values.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
userId |
path |
integer(int64) |
true |
Unique identifier for the user |
body |
body |
true |
Request body containing the cultural assignment details, including the culture ID and relevant attributes for the specified user. |
Body Parameters
1{
2 "id": 0,
3 "name": "string",
4 "code": "string",
5 "defaultCulture": true,
6 "enable": true
7}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "id": 0,
3 "email": "string",
4 "userName": "string",
5 "firstName": "string",
6 "lastName": "string",
7 "displayName": "string",
8 "permissions": "string",
9 "internalId": "string",
10 "preferredCulture": {
11 "id": 0,
12 "createdBy": "string",
13 "createdDate": "2019-08-24T14:15:22Z",
14 "lastModifiedBy": "string",
15 "lastModifiedDate": "2019-08-24T14:15:22Z",
16 "name": "string",
17 "code": "string",
18 "isDefault": true,
19 "enabled": true
20 }
21}
Get Current User¶
HTTP Request
GET /api/user/user-info
📋 Description: Fetches detailed user information, providing essential data for user management and personalization within the application.
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "userDetails": {
3 "password": "string",
4 "username": "string",
5 "authorities": [
6 {
7 "authority": "string"
8 }
9 ],
10 "accountNonExpired": true,
11 "accountNonLocked": true,
12 "credentialsNonExpired": true,
13 "enabled": true,
14 "id": 0,
15 "accountId": 0,
16 "fullName": "string",
17 "firstName": "string",
18 "lastName": "string",
19 "email": "string",
20 "audience": [
21 "string"
22 ],
23 "realm": "string",
24 "client": "string",
25 "accessTokenExpiry": 0,
26 "accountName": "string",
27 "environmentName": "string",
28 "serviceAccount": true,
29 "tokenIssuer": "string",
30 "profile": "string",
31 "ncpRoles": [
32 "string"
33 ],
34 "coreServiceRoles": [
35 "string"
36 ]
37 },
38 "preferredCulture": "string",
39 "userId": 0
40}