cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1457
Views
10
Helpful
2
Replies

Is it possible to enable/disable ISE internal user using ERS REST APIs

rvkota
Level 1
Level 1

Using either "name" or "id" of the internal user on ISE, is it possible to toggle the flag ("enabled") to true/false without changing any other attributes of the "Internaluser"?.

 

I used <changePassword>false</changePassword> hoping that password would not be updated (attempted when InternalUser object i sused)

 

The error I see is " code="Conversion exception"><title>Password can't be set to one of the earlier 1 password(s)"

 

Any additional documentation on ERS Java APIs such as public methods exposed for clients to use say for "InternalUser" class.

 

Thank you all in advance

RK

 

 

 

1 Accepted Solution

Accepted Solutions

hslai
Cisco Employee
Cisco Employee

Here is an example:

curl -X PUT -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdminUserName:myErsAdminPassword@myISE:9060/ers/config/internaluser/myInternalUserID' \
--data '{   "InternalUser" : {     "id" : "myInternalUserID",     "name" : "myInternalUserName",     "enabled" : false   } }'

View solution in original post

2 Replies 2

hslai
Cisco Employee
Cisco Employee

Here is an example:

curl -X PUT -k -H 'Content-Type: application/json' -H 'Accept: application/json' -i \
'https://myErsAdminUserName:myErsAdminPassword@myISE:9060/ers/config/internaluser/myInternalUserID' \
--data '{   "InternalUser" : {     "id" : "myInternalUserID",     "name" : "myInternalUserName",     "enabled" : false   } }'

hslai,

Thank you.

Your solutions looks very simple, not using the ERS Java APIs, but just execute a HTTP GET/PUT requests.

Will implement this and check.

 

Kind Regards

RK