Where can I find my Enterprise ID for the Box API?

I am using the Box API SDK for .Net and trying to configure it to use JSON web tokens instead of OAuth2.

When I instantiate the BoxConfig object, I need to specify the enterprise identifier:

var config = new BoxConfig( clientId, clientSecret, enterpriseId, jwtPrivateKey, jwtPrivateKeyPassword, jwtPublicKeyId ); 

View some conflicting information:

Can someone point me where, in particular, can I find the company identifier?

+6
source share
3 answers

The identifier of the enterprise can be found by going to the Admin Console → Click the mechanism in the upper right corner → Click “Business settings” (it can indicate “Enterprise settings” or “Elite settings” based on the account level). On the "Account Information" tab, you can see your company ID.

You can also directly go to this page by selecting https://www.box.com/master/settings while logging in to your account. Please note that only enterprise administrators / co-admins with sufficient permissions will have access to this page, otherwise they will be redirected to the account settings. In this case, you need to contact the administrator of your company to obtain this company identifier.

+9
source

It appears that the Enterprise ID is embedded on most pages, even on the / files page. You can access it by opening the browser console and going to window.initialConfig["enterpriseId"] or console.log(window.initialConfig["enterpriseId"]); .

Although this will give you an Enterprise identifier, the application must still be approved by the enterprise administrator.

+1
source

You can find this in the Developer Console for your application in the "Configuration"> "Application Settings" section, where you will see a JSON representation of your JSON application settings file, which you can also download. An enterprise identifier is an enterpriseID property.

Application Settings in the JSON File Box

0
source

All Articles