I wanted to derive enterprise id from access token. For example, in salesforce we can derive orgid from access token.
Page 1 / 1
Hi
There is nothing directly in the access token that will let you derive the enterprise ID. I think your best bet is to use the users/me endpoint
https://api.box.com/2.0/users/me?fields=enterprise should return something like
{
"type": "user",
"id": "13110169300",
"enterprise": {
"type": "enterprise",
"id": "57767591",
"name": "Peter's Demo Account"
}
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.