private static IEnumerable <UserDetails> GetOciUsers(IdentityClient client, string pageId) { var res = new List <UserDetails>(); var listUsersRequest = new ListUsersRequest() { CompartmentId = client.Config.TenancyId, Page = pageId, Limit = 2 }; var users = client.ListUsers(listUsersRequest); res.AddRange(users.Items); if (!string.IsNullOrEmpty(users.OpcNextPage)) { res.AddRange(GetOciUsers(client, users.OpcNextPage)); } return(res); }