
when the user name includes non-alphanumeric characters. A best practice is to always
include a trailing slash.
Example
To get the userIdentifier, we used the following URL:
https://<host>:<port>/csa/rest/login/MyOrganization/admin/
The following XML was 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.
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, we used the following URL:
https://<host>:<port>/csa/rest/login/MyOrganization/userLookup
?userName=admin/domain
The following XML was 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>
APIReference
HP Cloud Service Automation (4.10) Page 92 of 150
Comentarios a estos manuales