<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi guys,<br><br>I'm trying to assign a specific role to every user not having a linked account to a given resource using a bulk action but I cant find a proper way to search unlinked accounts.<br><br>I tried this search query for getting a list of users with unlinked account to the resource but I got repeated results:<br><br><query><br>    <filter><br>        <not><br>            <ref><br>                <path>linkRef/@/resourceRef</path><br>                <value oid="ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2"/><br>            </ref><br>        </not><br>    </filter><br></query><br><br>I also tried to search users with an assigned meta-role but I got no results with this query:<br><br><query><br>    <filter><br>        <ref><br>            <path>roleMembershipRef</path><br>            <value oid="98453745-84bd-5e6f-9c7c-3aca56312349"/><br>        </ref><br>    </filter><br></query><br><br>I also tried to use getLinkedShadow method but I couldn't find a way of executing it in the search query.<br><br>Is there a proper way for getting a list of users without a link to certain resource? Is there also a way of searching users with a meta-role assigned?<br><br>Thank you so much.<br><div><br></div><div>-- <br><div class="gmail_signature"><div><div><div><div><div><div><div><b>Ezequiel Alonso</b><br><span style="color:rgb(102,102,102)">Identicum S.A.<br><a href="https://maps.google.com/?q=Jorge+Newbery+3226" target="_blank">Jorge Newbery 3226, Buenos Aires, Argentina</a><br>Tel: +54 (11) 4552-3050<br><a href="https://www.identicum.com/" target="_blank">www.identicum.com</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>