Can't Create App Users with Java SDK
Using the following code with an application that has the rights to create app users:
BoxDeveloperEditionAPIConnection api = BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(
ENTERPRISE_ID, CLIENT_ID, CLIENT_SECRET, encryptionPref, accessTokenCache);
BoxUser.Info user = BoxUser.createAppUser(api, APP_USER_NAME);
getIsPlatformAccessOnly always returns false, even if I pass in params. Instead, it's creating an enterprise user I can login as, which the application is not technically authorized to do.
This is with a developer account. Anyone else have this issue or can tell me what I'm doing wrong?
-
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());
サインインしてコメントを残してください。
コメント
4件のコメント