user_email_confirmation_required - Unauthorized - User needs to complete email confirmation
Hi,
We are trying to disable the box account from sailpoint, so before disabling we were trying to remove the collaborations if any. We are not sure from sailpoint whether the user has done the email verification or not. For the users yet to do the email verification, the below piece of code at line no.6, actually throws exception "403 error user_email_confirmation_required - Unauthorized - User needs to complete email confirmation ". So please let us know is there any ways to check the user has verified the email.
1. String boxUser="########";
2. BoxUser user = new BoxUser(adminClient, boxUser);
3. BoxUser.Info userInfo = user.getInfo();
4. if(userInfo!=null && userInfo.getStatus().equals(BoxUser.Status.ACTIVE)){
adminClient.asUser(boxUser);
5. BoxFolder folders= BoxFolder.getRootFolder(adminClient);
6. for (BoxItem.Info itemInfo : folders) {
}
Please sign in to leave a comment.
Comments
0 comments