public async Task <IActionResult> RemoveRole([HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "access/removeRole")] AuthJanitorAuthorizedUser userToBeRemoved) { if (!_identityService.CurrentUserHasRole(AuthJanitorRoles.GlobalAdmin)) { return(new UnauthorizedResult()); } return(await _managementService.RemoveAuthorizedUser(userToBeRemoved.UPN, userToBeRemoved.RoleValue)); }