cancel
Showing results for 
Search instead for 
Did you mean: 

How to get user info using RestApi

Alexandre_VITRY
Champ on-the-rise
Champ on-the-rise

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

Anurag_Kumar
Confirmed Champ
Confirmed Champ

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
}