Mike G
Mike G

Reputation: 153

Where can I find my Enterprise ID for Box API?

I'm using the Box API SDK for .Net, and trying to set it up to use JSON Web Tokens instead of OAuth2.

When I instantiate the BoxConfig object I need to provide the Enterprise ID:

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

Seeing some conflicting information:

Can someone point me to where, specifically, I could find the Enterprise ID?

Upvotes: 6

Views: 5263

Answers (3)

Grokify
Grokify

Reputation: 16354

You can find this in the Developer Console for your app under "Configuration" > "App Settings" where you will see a JSON representation of your App Settings JSON file that you can also download. The Enterprise ID is the enterpriseID property.

Box App Settings JSON File

Upvotes: 0

Adam Huffman
Adam Huffman

Reputation: 1041

It appears that the Enterprise ID is embedded on most pages, even the /files page. It can be accessed by opening the browser's console and entering in window.initialConfig["enterpriseId"] or console.log(window.initialConfig["enterpriseId"]);.

Even though that will give you the Enterprise ID the application will still need to be approved by an Enterprise Admin.

Upvotes: 2

Paul Paulauskas
Paul Paulauskas

Reputation: 276

You can find the Enterprise ID by going to the Admin Console -> Click the gear in the top right -> Click Business Settings (It may say Enterprise Settings or Elite Settings based on the account level). Under the Account Info tab you can see your Enterprise ID.

You can also get directly to that page by going to https://www.box.com/master/settings while logged into the account. Note that only enterprise admins / co-admins with sufficient permissions will have access to that page, otherwise it will redirect to the account settings. In this case, you would need to contact your enterprise admin to get this Enterprise ID.

Upvotes: 10

Related Questions