How do I access to Admin Console
AnsweredI'm experiencing an issue where the Admin Console isn't showing up in the box. Can you provide assistance?
I've purchased a Box Personal Pro licensed version.
As a beginner Box developer,I create New App and I can see Dev Console in my Box Account but I'm still unable to see the Admin Console.
When I access following url https://developer.box.com/master it navigates to https://developer.box.com/folder/0 automatically.
I've already tried the troubleshooting steps suggested in the support forum and elsewhere but issue still persists..
Could you offer guidance or support?
Thanks.
-
Hi Lu,
Welcome to the Box Community!
Please note, Personal Pro does not have the "Admin console". In order to access the 'Admin console', you may need to upgrade to Business, Business Plus, or Enterprise.
To view the various plans and features offered by Box, please visit our website at https://www.box.com/pricing/business
Please do not hesitate to contact our Sales team if you have questions regarding account upgrade.
There are a couple of ways to get in touch with our Sales team:
- You can give them a call directly at 1.877.729.4269 ext. 1
- Submit a contact form at this page: https://www.box.com/quote/
- View package options and live chat sales (available during US business hours) at this page: https://www.box.com/pricing/
Thank you for posting!
-
Hi Ann,
Thank you for answering my question. I appreciate your assistance. Now, I have another question.
Subject: Issue with Invalid 'sub' Claim in JWT for Box Authentication(Error: Auth Error: Please check the 'sub' claim. The 'sub' specified is invalid. [400 Bad Request] invalid_grant - Please check the 'sub' claim. The 'sub' specified is invalid.)
I hope this message finds you well. I'm currently encountering an issue while attempting to utilize JWT authentication with the Box SDK in Node.js. Specifically, I'm trying to create a folder in my Box account programmatically using the provided code snippet.Despite verifying the accuracy of the JWT configuration file, ensuring that the JWT token has not expired, and confirming that the client ID and private key information are correct, I continue to encounter authentication errors.
Additionally, I would like to mention that I created the application in the Box Personal Pro version, resulting in an enterprise ID of 0. Could this enterprise ID value be contributing to the authentication issue? Furthermore, even after creating another account with a free version, I'm still experiencing the same authentication error. I have observed that the free account also receives an enterprise ID, albeit still encountering issues with JWT token authentication.
Please Check source code here using Box SDK:
const config = require('./0_7c0qhdk1_config.json');
const BoxSDK = require('box-node-sdk');
const fs = require('fs');
const path = require('path');
// const Folders = require('box-node-sdk/lib/managers/folders');
// const TokenManager = require('box-node-sdk/lib/token-manager');// Load your JWT configuration file
const configJSON = JSON.parse(fs.readFileSync('./0_7c0qhdk1_config.json'));// Initialize the SDK
const sdk = BoxSDK.getPreconfiguredInstance(configJSON);// Create a client with JWT authentication
const client = sdk.getAppAuthClient('enterprise');// Define the folder name and parent folder ID
const folderName = 'New Folder';
const parentFolderID = '0'; // the root folderclient.folders.create(parentFolderID, folderName)
.then(folder => {
console.log(`Folder "${folderName}" created with ID: ${folder.id}`);
})
.catch(err => {
console.error('Error creating folder:', err);
});Furthermore, I've double-checked the permissions and access levels for my Box account, and everything appears to be in order. However, I'm still unable to authenticate successfully and still gets grant errors.
So And I've tried another way.Here are my JWT payload:const payload = {
iss: 'YOUR_CLIENT_ID',
sub: 'YOUR_USER_ID',
box_sub_type: 'user',
aud: 'https://api.box.com/oauth2/token',
exp: Math.floor(Date.now() / 1000) + (60 * 60), // Expire in 1 hour
iat: Math.floor(Date.now() / 1000), // Issued at now
nbf: Math.floor(Date.now() / 1000) // Not before now
};
const options = {
algorithm: 'RS256', // Box API requires RS256 algorithm
header: {
typ: 'JWT'
}
};// Sign the JWT
const token = jwt.sign(payload, privateKey, options);Despite these checks, I still receive the invalid 'sub' claim error. Could you please help me identify what might be causing this issue?
I would greatly appreciate your guidance on how to troubleshoot and resolve this authentication issue. Any insights or suggestions you can provide would be immensely helpful.Thank you very much for your assistance.
Best regards,
Please sign in to leave a comment.
Comments
2 comments