# Delegate GetUsersWithIdentitiesAsyncDelegate OptimaJet.Workflow.Core.Runtime.GetUsersWithIdentitiesAsyncDelegate Asynchronous delegate used to retrieve [UserIdentity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/UserIdentity/) associations between user names and application-defined workflow participant identities. Namespace: [OptimaJet.Workflow.Core.Runtime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/) ```csharp public delegate Task> GetUsersWithIdentitiesAsyncDelegate(string userName = null, SortDirection sortDirection = SortDirection.Asc, Paging paging = null) ``` ## Parameters | Name | Type | Description | | --- | --- | --- | | `userName` | `System.String` | Optional filter for UserIdentity.UserName. | | `sortDirection` | `OptimaJet.Workflow.Core.Persistence.SortDirection` | The SortDirection for returned users. | | `paging` | `OptimaJet.Workflow.Core.Persistence.Paging` | Optional Paging.PageIndex and Paging.PageSize values. | [Previous GetUserByIdentityAsyncDelegate](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/GetUserByIdentityAsyncDelegate/) [Next ICustomActivityProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/ICustomActivityProvider/)