Code to access REST end point with JWT Bearer grant type AuthorizationSummaryBelow is a sample code to access REST end point with JWT Bearer grant type AuthorizationInstructionsSet up jwt_provider record . After configuration is successful , below code can be executed to access REST end point with JWT Bearer grant type Authorization var tokenRequest = new sn_auth.GlideOAuthClientRequest();tokenRequest.setGrantType("urn:ietf:params:oauth:grant-type:jwt-bearer");tokenRequest.setRequestor("someone@someemail.com");var oAuthClient = new sn_auth.GlideOAuthClient();// box_demo is the name of jwt_providervar tokenResponse = oAuthClient.requestTokenByRequest("box_demo", tokenRequest);gs.info("Error:" + tokenResponse.getErrorMessage());var token = tokenResponse.getToken();if(token) {gs.info("AccessToken:" + token.getAccessToken());gs.info("AccessTokenExpiresIn:" + token.getExpiresIn());// Making a REST callvar restMessage = new sn_ws.RESTMessageV2();//set the token obtained from aboverestMessage.setRequestHeader('Authorization', 'Bearer ' + token.getAccessToken());restMessage.setHttpMethod("get");// set end pointrestMessage.setEndpoint("https://api.box.com/2.0/folders/109476179807"); var response = restMessage.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode(); gs.log(responseBody);}