Search in sources :

Example 1 with UserStatusDetails

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.");
}
Also used : UsersApi(org.broadinstitute.dsde.workbench.client.sam.api.UsersApi) UserStatusDetails(org.broadinstitute.dsde.workbench.client.sam.model.UserStatusDetails)

Aggregations

UsersApi (org.broadinstitute.dsde.workbench.client.sam.api.UsersApi)1 UserStatusDetails (org.broadinstitute.dsde.workbench.client.sam.model.UserStatusDetails)1