11-26-2018 02:24 PM - edited 11-26-2018 02:27 PM
Hello:
I am trying to BULK delete by id using ISE API but SDK documentation does not specify how to do it. I tested BULK create and I could do it successfully, mainly following SDK documentation.
I am trying to do it using XML, the problem must be somewhere on the BODY of my PUT request. I am attaching captures for better understanding.
At the end I receive the error "invalid bulk request - Illeagal operation - DeleteById" but this is supposed to be supported, right?
Solved! Go to Solution.
11-28-2018 06:53 AM - edited 11-28-2018 08:21 AM
Try this :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:guestUserBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.guestuser.2.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"><idList><id>f9fd2080-f302-11e8-a838-ba07e7fa50c9</id></idList></ns4:guestUserBulkRequest>
You can put upto 5000 ids.
11-27-2018 05:50 AM
Checking with SME on this.
meanwhile, I hope you have looked into this link here - https://community.cisco.com/t5/security-documents/ise-guest-sponsor-api-tips-amp-tricks/ta-p/3636773#toc-hId--2098450997
11-27-2018 09:54 AM
Hi Nidhi:
Thanks for the link!, unfortunately there are no examples on how to bulk Delete so I have not been able to do it. Hopefully someone has experience with it on this forum.
Thanks and regards!
11-27-2018 09:56 AM
11-28-2018 06:53 AM - edited 11-28-2018 08:21 AM
Try this :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:guestUserBulkRequest operationType="delete" resourceMediaType="vnd.com.cisco.ise.identity.guestuser.2.0+xml" xmlns:ns6="sxp.ers.ise.cisco.com" xmlns:ns5="trustsec.ers.ise.cisco.com" xmlns:ns8="network.ers.ise.cisco.com" xmlns:ns7="anc.ers.ise.cisco.com" xmlns:ers="ers.ise.cisco.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns4="identity.ers.ise.cisco.com"><idList><id>f9fd2080-f302-11e8-a838-ba07e7fa50c9</id></idList></ns4:guestUserBulkRequest>
You can put upto 5000 ids.
11-28-2018 02:01 PM
Hi Surendra:
Yes, that made it work, I tried it with 5000 ids and it deleted 2500 +- successfully, the other 2500+- failed: rootCause="getAttribute: Session already invalidated"
It took 2:30 minutes to delete 2,500 ids, is there a session timer that I can adjust to be able to delete 5,000 ? I have not found it yet on ISE.
I will continue my testing.
THANKS!
11-29-2018 09:45 AM
After further testing these are my results when trying to Bulk delete guest users with ISE 2.4:
5,000 first try: 2,500 users failed to delete
5,000 second try: 3,500 users failed to delete
2,500 : 1000 failed to delete
Error is the same for each case:
“rootCause="getAttribute: Session already invalidated"
Apparently only when you bulk delete 1000++ users is when Bulk delete works fine.
Any information that can help here?
07-13-2019 04:17 PM
“rootCause="getAttribute: Session already invalidated"
If anyone running into this, I would suggest to try setting the cookies and sending the request with them. If that not helping, we should file a bug.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide