AuthN | Java SDK | Invite Endpoints
Invite Endpoints
Invite User
invite(UserInviteRequest request)Send an invitation to a user.
UserInviteRequest request = new UserInviteRequest
.Builder(
"admin@email.com",
"joe.user@email.com",
"https://www.myserver.com/callback",
"pcb_zurr3lkcwdp5keq73htsfpcii5k4zgm7")
.build();
UserInviteResponse response = client.user().invite(request);
List Invites
list(UserInviteListRequest request)Look up active invites for the userpool.
UserInviteListRequest request =
new UserInviteListRequest.Builder().build();
UserInviteListResponse response =
client.user().invite().list(request);
Delete Invite
delete(String id)Delete a user invitation.
client.user().invite().delete("pmc_wuk7tvtpswyjtlsx52b7yyi2l7zotv4a");