While debugging I'm able to see the role returned in "responseData.role
What's the easiest way to take that role i.e. "Manager" and put it in a variable as a String?
I have the following result handler to retrieve a users role i.e. "Manager", "Supervisor", "User"
private function onEntitlementResultHandler(event:ResultEvent):void
var userRoleResponse:TaskResponse = new TaskResponse(JSON.decode(event.result as String));
var responseData:Object = userRoleResponse.data;
var userList:Object = responseData.role;
model.userRole = userList as String;
for each (var user:Object in userList)
user.role = model.userRole;
Thanks so much for your assistance.
Retrieving data ...