I am looking for a way to bulk delete roles entirely from IIQ. Not from users but actually completely delete them from IIQ. I am looking to delete thousands of roles from our environment. Anyone know a bulk way to accomplish this within IIQ?
James, Welcome to the developer site! One challenge for this is that the hierarchy can get in the way, where you might encounter an issue when a bundle that has a required role would be deleted before the required role, or inheritance can get in the way.
I have written a task in my Mercury Cyber Documenter plugin that can print out a list of roles, which can be then turned into a file that can be sent to the console. LMK if you would like to try it out, we can connect.
The process looks like this: Run the Role Analysis task in bottomup mode. If you want to delete everything in a specific folder (Org role) then you can specify that as the starting point. It produces a file of bundle names. You can then take that file and with NPP you can prepend each line in the file with delete Bundle " and then postpend with "
Once that modified file is saved, you can copy it to the console’s bin folder and execute the console, and enter source filename
I don’t think you can do via console , but for sure you can use the write a custom rule do disable bulk roles and then you can trigger that rule via task definition
One way I can think of, export roles using IIQ console and add (you can use notepad++ find and replace) disabled=“true”
to <Bundle created=“1650268921424”
and import back. I would do a quick POC in lower environment to capture the process and try later in PROD. Please also keep a back up in the event you need to restore.