EdgeCore version: 4.3.0
Method
GET /public/users/{userName}/credentials
Used to retrieve credentials by a specific user.
Parameters
| Name | Type | Description | Mandatory |
userName |
string | Username of the user | Yes
If domain name is not included (userName@domainName), it assumes the default domain. |
cURL example
curl --location --request GET 'http://localhost:8080/public/users/jane/credentials' \ --header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5'
Example Response
{
"TestCred": {
"userId": "9uvkg2-h266vjk3v3fb",
"userName": "jane",
"domainId": "9uvkg2-h266vjk3uc90",
"doClass": "UserSecVarValueDO",
"id": "bnc7r3-k9rmpkhprpga",
"varName": "TestCred",
"value": {
"doClass": "CredentialSetDO",
"isParameter": false,
"credentials": [
{
"doClass": "CredentialPairDO",
"key": "Username",
"value": {
"doClass": "SpStringValueDO",
"isParameter": false,
"primitiveValue": "bestuser"
},
"hidden": false,
"required": false
},
{
"doClass": "CredentialPairDO",
"key": "Password",
"value": {
"doClass": "SpEncryptedStringValueDO",
"isParameter": false,
"plainValue": "UNUSED",
"encryptedValue": "#default!Xtb5VSKgiOVloPU7gxl+Kt3DmfzsdaJ0tnrzOq6PNiE="
},
"hidden": true,
"required": false
}
]
},
"inheritedValue": null,
"inheritedValueScope": null
}
}
HTTP Response
| Code | Status | Description |
| 200 | OK | The request has succeeded.
Additionally, if {} is returned in the response, that means no secured variables have been set. |
| 404 | Not Found | The user could not be found. |