Skip to main content
Question

How can I set isExternalCollabRestricted field value while creating BoxUser

  • May 22, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

I am trying to set "isExternalCollabRestricted" field while creating BoxUser using the box-sdk.

I only see a get method for this variable

public boolean getIsExternalCollabRestricted()

But where is the public boolean setIsExternalCollabRestricted() ?

I am referring this link https://github.com/box/box-java-sdk/blob/main/src/main/java/com/box/sdk/BoxUser.java 

1 reply

Forum|alt.badge.img

Hello, 

Taking a look at the create user sdk documentation here, it says:

To pass additional optional parameters, use the createEnterpriseUser(BoxAPIConnection api, String loginEmail, String userName, CreateUserParams options) method.

You can find all of the available options in our create user reference documentation. You'll want to use the is_external_collab_restricted boolean. 

Best,

Kourtney, Box Developer Advocate