Rest API change authentication method on User

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rest API change authentication method on User

L1 Bithead

I'm trying to change authenticationMethod for user to ldap

I'm using Update user call:

https://docs.cyberark.com/pam-self-hosted/14.6/en/content/webservices/users%20web%20services%20-%20update%20user.htm

 

authenticationMethod should be AuthTypeLDAP

 

But I'm getting following error:

{"ErrorCode":"PASWS346E","ErrorMessage":"The authentication method ID 'AuthTypeLDAP' doesn't exist."}

The remote server returned an error: (400) Bad Request.

 

Any ideas?

4 REPLIES 4

L4 Transporter

Hello,

You may want to try using the Private Ark Command Line Interface (PACLI) to change the authentication type.

 

My recommendation would be to collect the current authentication type using Export Vault Data using the UserList command. For example, a user configured for Radius would be a value of 16 and LDAP would be 1.

 

You would then use PACLI to change the authentication type.

 

We found that changing the user authentication type within PrivateArk caused issues where changing with PACLI did not.

 

L1 Bithead

The idea is to get all regular users and change auth method using REST API thru the powershell script.

Documentation says it should work.

L4 Transporter

Hello,

Perhaps you can try the Get Authentication Methods first to determine the naming convention for LDAP Authentication.

 

In my environment it is LDAP_Authentication and not AuthTypeLDAP.

L1 Bithead

Indeed. Same here.

In my case AuthTypeLDAP has ID of "ldap"

I'll try to play with it and post the results.

Thx m8. 😉

 

  • 32 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!