Inputs:-
vraHost:- vra:host
requestedBy:- String
orgId:- string
var url = '/csp/gateway/am/api/users/'+requestedBy+'/orgs/'+orgId+'/info';
var restClient = vraHost.createRestClient();
var request = restClient.createRequest("GET", url);
request.setHeader("Content-Type", "application/json")
var response = restClient.execute(request);
statusCodeAttribute = response.statusCode;
System.log("REST Response Status Code: " + statusCodeAttribute);
responseAsString = response.contentAsString;
System.warn("REST Response Content: " + responseAsString);
return JSON.parse(response.contentAsString).user.email