Using the API to detect Enterprise Users
In our app that uses the Box API I currently use the following API to detect whether the user has an Enterprise account or not:
https://api.box.com/2.0/users/me?fields=enterprise
If the user has a free account, the Enterprise field is returned as null. I am using this to make the Enterprise MetaData Templates feature available to the user. What about Elite and Business Plus users? Will the Enterprise field come back non-null as well?
Thanks
Peter
-
Hello ,
as per this article https://community.box.com/t5/How-to-Guides-for-Managing/Metadata-Tutorial/ta-p/352
it is stated "Metadata is a feature reserved for Business Plus, Enterprise and Elite accounts. It is also available on developer accounts through https://developers.box.com. To upgrade your account, please contact your Box account team."
So, it should return a value also.
-
Thanks for responding, . Since the article you referred to does not mention the Users/Me API, let me double-check with you, if you don't mind. My understanding of the "Users/Me API with "fields=enterprise" up to now has been that it allows you to identify Box Enterprise users. If I understand you correctly, you are saying that specifying "fields=enterprise" tells you whether the user has access to Enterprise features such as MetaData, independent of this user is Elite, Business Plus, or Enterprise. Correct?
Thanks
Peter
Please sign in to leave a comment.
Comments
2 comments