Re: How to get a new UAA guid by REST


Aleksey Zalesov
 

Hi,

you need to query UAA API instead of CC API to learn user id.

GET /Users?attributes=id&filter=userName eq 'admin'

UAA endpoint:

$ cat ~/.cf/config.json | jq .UaaEndpoint

To create user you still need to use CC API, as user data goes to both CC and UAA databases. CC then creates UAA user automatically.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.