From Bright Pattern Documentation
Line 5: | Line 5: | ||
=== URL === | === URL === | ||
http[s]://<host>/configapi/v2/user/<login_id> | http[s]://<host>/configapi/v2/user/<login_id> | ||
+ | |||
+ | For example: | ||
+ | http://example.com/configapi/v2/user/frank.zappa | ||
=== HTTP Method === | === HTTP Method === | ||
Line 22: | Line 25: | ||
| string | | string | ||
| The username of the user that you want to get data for | | The username of the user that you want to get data for | ||
− | | " | + | | "frank.zappa" |
|} | |} | ||
Line 40: | Line 43: | ||
"changePassword":false, | "changePassword":false, | ||
"skills":{}, | "skills":{}, | ||
− | "loginId":" | + | "loginId":"frank.zappa", |
− | "firstName":" | + | "firstName":"Frank", |
− | "lastName":" | + | "lastName":"Zappa", |
"team":"Customer Service", | "team":"Customer Service", | ||
"extension":"1048", | "extension":"1048", | ||
− | "email":" | + | "email":"frank.zappa@gmail.com", |
"roles":["Agent"] | "roles":["Agent"] | ||
} | } |
Revision as of 18:22, 12 March 2019
• 5.2
<translate>= Get User Data= Returns user data, such as name, team, extension, skills, and so forth.
Request
URL
http[s]://<host>/configapi/v2/user/<login_id>
For example:
http://example.com/configapi/v2/user/frank.zappa
HTTP Method
GET
Content-Type
application/json
Parameters
Parameter | Data-Type | Description | Example |
loginId | string | The username of the user that you want to get data for | "frank.zappa" |
Request Body
Empty. All you need is the username in the URL and the content-type header.
Response
In response to a successful request, the user data is displayed in JSON. You can verify user data by checking the same user information in Contact Center Administrator > Users & Teams > Users.
For failed requests, no user data is shown.
Example Response
{
"disabled":false,
"changePassword":false,
"skills":{},
"loginId":"frank.zappa",
"firstName":"Frank",
"lastName":"Zappa",
"team":"Customer Service",
"extension":"1048",
"email":"frank.zappa@gmail.com",
"roles":["Agent"]
}
Response Parameters
Parameter | Data-Type | Description | Example |
disabled | Boolean | Whether the user is disabled ("true") or not ("false") | false |
changePassword | Boolean | Whether the user must change password ("true") on next login or not ("false") | false |
skills | array | The user's auxiliary skills | {["English"], ["Spanish"]} |
loginId | string | The username of the user | "frank.zappa" |
firstName | string | The first name of the user | "Frank" |
lastName | string | The last name of the user | "Zappa" |
team | string | The name of the team assigned to the user | "Customer Service" |
extension | number | The phone extension number of the user | "1048" |
string | The email address of the user | "frank.zappa@gmail.com" | |
roles | array | The role assigned to the user | ["Agent"], ["Supervisor"] |
</translate>