Skip to content

Adding a user to an Identity Zone in UAA #744

@svennela

Description

@svennela

Looking at the UAA API, I can see that create user does indeed support the zone id header - seems like the UAA Java client library doesn't. Looking at https://docs.cloudfoundry.org/api/uaa/#create64 , X-Identity-Zone headers are present.

Using below code.

CreateUserRequest createUserRequest = CreateUserRequest.builder()
                .userName(USERNAME)
                .password(PASSWORD)
                .email(Email.builder().primary(true).value(USER_EMAIL).build())
                .active(true)
                .verified(true)
                .name(Name.builder().givenName("test").familyName("user").build())
                .build();

   CreateUserResponse createUserResponse = izUAAClient.users().create(createUserRequest).block();

Thank you,
Sridhar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions