<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">is it possible, and if so, can anyone guide me on how to unassign all roles (or orgs) that has been deleted*. </div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I've been trying to use the bulk script actions, but I cannot figure out how to figure out how to compose the filter.</div><div style="font-family: Arial, sans-serif; font-size: 14px;">All my tests end up with either a stack-trace or "<span>There are no roles nor resources to unassign and no filter is specified</span>"</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">What I got working was the example:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><s:action></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><span> </span><s:type>unassign</s:type></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><span> </span><s:parameter></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><span> </span><s:name>role</s:name></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><span> </span><c:value xsi:type="xsd:string”>OID</c:value></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"><span> </span></s:parameter></p><p style="margin: 0px; font: 13px Courier; color: rgb(209, 28, 36); background-color: rgb(252, 244, 220);"></s:action></p>But that take one OID, and... I need to have at least a list, but preferably something even smarter.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I tried to do something like this:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><pre><code data-lang="xml"></code></pre><div style="color: rgb(88, 110, 117); background-color: rgb(253, 246, 227);"><pre style="font-family:'JetBrains Mono',monospace;font-size:9.8pt"><span style="color: rgb(147, 161, 161);"><</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:action</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:type</span><span style="color: rgb(147, 161, 161);">></span>unassign<span style="color: rgb(147, 161, 161);"></</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:type</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:parameter</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:name</span><span style="color: rgb(147, 161, 161);">></span>filter<span style="color: rgb(147, 161, 161);"></</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:name</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:searchFilter</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:inOid</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:value</span><span style="color: rgb(147, 161, 161);">></span>fef34a49-f7d4-4a68-97ee-cb240fe13022<span style="color: rgb(147, 161, 161);"></</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:value</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> <</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:value</span><span style="color: rgb(147, 161, 161);">></span>f379d31e-6990-4226-8007-932b9676a8ff<span style="color: rgb(147, 161, 161);"></</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:value</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> </</span><span style="font-weight: bold; color: rgb(108, 113, 196);">q</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:inOid</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> </</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:searchFilter</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"> </</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:parameter</span><span style="color: rgb(147, 161, 161);">><br></span><span style="color: rgb(147, 161, 161);"></</span><span style="font-weight: bold; color: rgb(108, 113, 196);">s</span><span style="font-weight: bold; color: rgb(38, 139, 210);">:action</span><span style="color: rgb(147, 161, 161);">><br></span></pre></div>But cannot get any thing to work.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Anyway, any pointers is greatly appreciated.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">* I know there is a message saying this role/org has members, do you still want to etc. </div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user">
Markus</div>
<div class="protonmail_signature_block-proton protonmail_signature_block-empty">
</div>
</div>