CAS User Profile:Set Cas Secret For User

Search (SHIFT+S)




New in this release

Set Cas Secret For User

POST /object/user-cas/secret/{uid}

Creates or updates CAS secret for a specified user.

uidValid user identifier to update a secret for

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN

  • NAMESPACE_ADMIN


Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<user_cas_secret_param>
<namespace> Namespace identifier to associate with the CAS secret String
<secret> Secret for the user String
</user_cas_secret_param>

Response Body

Result with status of the operation


Examples

Request
POST https://192.168.0.0:4443/object/user-cas/secret/wuser1@sanity.local HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

<user_cas_secret_param>
   <namespace>s3</namespace>
   <secret>secret</secret>
</user_cas_secret_param>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Notes: