Is it possible via the Unity API (CUPI) to assign an Authentication Rule to the User's Password settings?
In the UI, under Users > Edit User Basics >Edit > Password Settings > Authentication Rule, there is a drop down list. I want to assign one of the choices from this list to the user via the API.
I have acquired the Authentication Rule to be assigned. Have not been able to find an attribute of User or a nested attribute where this rule can be assigned.
Any help would be greatly appreciated.
Have you done a get on the
https://<cucserver>/vmrest/users/<user object id>/credential/password
While I can't find a doc there is the credential policy object id field here is but there is a field I would expect aligns with that field to align with the policy.
Let me see if I can test.
Yup put works to change this. Tested the put in post man
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CredentialPolicyObjectId>GUID of the object ID of the auth policy</CredentialPolicyObjectId>
Working so predicted. Let me know if you need help scripting this via python to update your users.