use of org.broadinstitute.dsde.workbench.client.sam.model.UserStatusDetails in project terra-cli by DataBiosphere.
the class SamService method inviteUser.
/**
* Call the SAM "/api/users/v1/invite/{inviteeEmail}" endpoint to invite a user and track them.
* This is not the same thing as registering a user.
*
* @param userEmail email to invite
*/
public void inviteUser(String userEmail) {
callWithRetries(() -> {
logger.info("Inviting new user: {}", userEmail);
UserStatusDetails userStatusDetails = new UsersApi(apiClient).inviteUser(userEmail);
logger.info("Invited new user: {}", userStatusDetails);
}, "Error inviting new user in SAM.");
}
Aggregations