I created a snippet to update the status of a user:
public static boolean updateUserStatus(String uid, String status) throws IOException {
BoxUser user = new BoxUser(api, uid);
BoxUser.Info info = user.new Info();
info.setStatus(BoxUser.Status.valueOf(status));
user.updateInfo(info);
return true;
}I was able to set the user's status to INACTIVE but I am unable to set it back again to ACTIVE because it won't allow the user to login when its already in INACTIVE state. I had to manually set from the console.
Is there a way for me to set an INACTIVE user to another status programmatically?