How to get user info using RestApi
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2015 07:58 AM
Hello,
I would like to get users info like first name and last name (in my case a lock owner) using java rest api. How should I do it ?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2015 07:54 AM
Use This in REST Client:
HTTPGet Method with below request:
http://localhost:8080/nuxeo/site/api/v1/user/
ex: http://localhost:8080/nuxeo/site/api/v1/user/Administrator Result will be:
{
"entity-type": "user",
"id": "Administrator",
"properties":
{
"tenantId": null,
"lastName": "",
"username": "Administrator",
"email": "Administrator@example.com",
"company": "",
"firstName": "",
"password": "",
"groups":
[
"administrators"
]
},
"extendedGroups":
[
{
"name": "administrators",
"label": "Administrators group",
"url": "group/administrators"
}
],
"isAdministrator": true,
"isAnonymous": false
}
