Develop > Application Programming Interface > Legacy APIs > Login API > Get userIdentifier for user name with slash

Get userIdentifier for user name with slash

Details

URI /login/<organization_name>/userLookup
Method GET
Parameters userName=<user_name>
    Required; the user name you want to use as credentials for CSA.
Returns 200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception

Example

To get the userIdentifier, use the following URL:

https://<host>:<port>/csa/rest/login/MyOrganization/userLookup ?userName=admin/domain

The following XML is returned in the response:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
    <id>90s96588670da0c701360da0f1d540a1</id> <!-- This is userIdentifier -->
    ... <!-- Remaining XML is not relevant for this example. -->
</person>

The value for userIdentifier is the first <id> value returned in the XML.