you need to query UAA API instead of CC API to learn user id.
GET /Users?attributes=id&filter=userName eq 'admin'
$ 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.