Welcome to the new Box Support website. Check out all the details here on what’s changed.

Can't Create App Users with Java SDK

New post

Comments

4 comments

  • smartsachin

    Could you please try this :

     

    CreateUserParams userParams = new CreateUserParams();

    userParams.setIsPlatformAccessOnly(true);

    BoxUser.Info userInfo = BoxUser.createAppUser(api,APP_USER_NAME,userParams);

     

    Hope this will help.

     

    0
    Comment actions Permalink
  • mlugert

    Thanks for the reply.

     

    I've tried to specifically setIsPlatformAccessOnly to true and I also tried it with multiple app user names.

     

    All fail with the same error code when trying to login as app user.

     

    thanks.

    0
    Comment actions Permalink
  • kendomen

    Ok, I think I see what's happening.  I guess you have to call it like this...

     

    BoxUser user = new BoxUser(api, "***number removed for privacy***");
    
    // logical way
    System.out.println(user.getInfo().getIsPlatformAccessOnly());
    
    // I guess you have to specifiy it        
    System.out.println("getIsPlatformAccessOnly: " + user.getInfo("is_platform_access_only").getIsPlatformAccessOnly());

     

     

    0
    Comment actions Permalink
  • kendomen

    here's through postman...

    update.png

    0
    Comment actions Permalink

Please sign in to leave a comment.