###Basic Auth To use Admin's permission in the server side action or imperonsate to other user use basic auth Authorization header:
###Back& server side Action In the action change the headers code to be this line:
headers:{'Authorization':'basic ' + btoa (username + ':'+ password) }
The username is the app master token (Securit & Auth /social &keys).
The password is the Admin user key (Team / key Icon near the username).
###The entrie code should look like this:
var response = $http({
method: "POST", url:CONSTS.apiUrl + "/1/objects/users",
params: {parameters: {"sync": true}},
data: parameters,
headers:{'Authorization':'basic ' + btoa (username + ':'+ password) }
});
###cURL Example###
curl https://api.backand.com/1/objects/items -u 517f8654-eadd-478b-a65b-66dd5625458e:27b90578-c2dc-11e5-be83-0ed7053426cb