You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
true/false fields inaccurate for 'getCanSeeManagedUsers()' and 'getIsSyncEnabled()' #386
When using the Box Java SDK, the 'getCanSeeManagedUsers()' and 'getIsSyncEnabled()' methods on the BoxUser.Info object always return 'false'. These two flags are set to 'true' on users in our org but always return false. We need the Java SDK updated to reflect the actual state of the flags on the user.
There's definitely a workaround available here (making sure to pass these fields to getInfo(), but this really seems like a case of bad defaults. The fact that this field defaults to false when the field was not requested introduces uncertainty when the BoxUser.Info object is used: was the field actually false or just not requested by whoever generated the object?
We should look into how to address this sort of confusion around optional fields in the future, e.g. by using Boolean or Optional in some way.
Activity
gcurtis commentedon Feb 6, 2017
Hi @paapfly, can you confirm that you're passing in these fields in through the
fieldsparameters? They're not returned by the API by default.mattwiller commentedon Dec 24, 2017
There's definitely a workaround available here (making sure to pass these fields to
getInfo(), but this really seems like a case of bad defaults. The fact that this field defaults tofalsewhen the field was not requested introduces uncertainty when theBoxUser.Infoobject is used: was the field actually false or just not requested by whoever generated the object?We should look into how to address this sort of confusion around optional fields in the future, e.g. by using
BooleanorOptionalin some way.