How to convert an OBJECT to USER

I have and object like this:

  1. company: “”
  2. displayIcon: true
  3. displayLabel: “Administrator”
  4. email: “devnull@nuxeo.com”
  5. entity-type: “user”
  6. firstName: “”
  7. groups: []
  8. id: “Administrator”
  9. lastName: “”
  10. prefixed_id: “user:Administrator”
  11. tenantId: null
  12. type: “USER_TYPE”
  13. username: “Administrator”
  14. proto: Object

and is used like an Object, but i want to use it like an User

0 votes

1 answers

66 views

ANSWER



Hello,

You should look at https://doc.nuxeo.com/rest-api/1/user-entity-type/.

Like

curl -u Administrator:Administrator https://XXX.nuxeo.com/nuxeo/api/v1/user/MyUser

0 votes