public async Task <IActionResult> GetAll([FromQuery] string filter, [FromQuery] string excludedAttributes, [FromQuery] string attributes) { var groups = await _groupRepository.GetManyByOrganizationIdAsync(_orgId); groups = FilterResources(groups, filter); var groupsResult = groups.Select(g => new ScimGroup(g)); var result = new ScimListResponse(groupsResult); return(new OkObjectResult(result)); }
public async Task <IActionResult> GetAll([FromQuery] string filter, [FromQuery] string excludedAttributes, [FromQuery] string attributes) { var users = await _organizationUserRepository.GetManyDetailsByOrganizationAsync(_orgId); users = FilterResources(users, filter); var usersResult = users.Select(u => new ScimUser(u)); var result = new ScimListResponse(usersResult); return(new OkObjectResult(result)); }