Identity Service Examples for Creating a Tenant Syntax for each service example lists input parameters, output parameters, and curl commands. Syntax for Displaying Your Current TenantsGET /api/tenants lists all the vRealize Automation tenants in your system. Syntax for Requesting a New TenantPUT /api/tenants/{tenantId} submits a request to create or update a tenant. You can specify request parameters using JSON command line input or by calling an existing JSON file from the command line. Syntax for Listing All Tenant Identity Stores GET /api/tenants/{tenantId}/directories lists all available identity stores for a named vRealize Automation tenant, such as the default tenant vsphere.local. Syntax for Linking an Identity Store to the Tenant PUT /api/tenants/{tenantId}/directories/{id} links an LDAP, Active Directory, or Native Active Directory identity store to the vRealize Automation tenant. Syntax for Searching LDAP or Active Directory for a UserGET /api/tenants/{tenantId}/principals/{userId} searches the configured LDAP directory, Active Directory, or Native Active Directory for a user. Syntax for Assigning a User to a RolePUT /api/authorization/tenants/{tenantId}/principals/{principalId}/scopes/{scopeId}/roles/{scopeRoleId} assigns a user to a role. Syntax for Displaying all Roles Assigned to a UserGET /api/authorization/tenants/{tenantId}/principals/{principalId}/roles displays all of the roles assigned to a user. Parent topic: Creating a Tenant