CharleneDougal1
2 years agoQrew Member
API_UserRoles
Is there a way to filter API_UserRoles based on Role ID? ------------------------------ Charlene Dougall ------------------------------
Yes, when I run
http://target_domain/db/target_dbid?a=API_UserRoles&apptoken=app_token
I get the following XML result which list all users and their role. Is there a way to query for certain roles (for example only query role id=18). Similar how we can query, API_DoQuery.
<qdbapi>
<action>API_UserRoles</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<users>
<user type="user" id="69394206.8yji">
<name>First Last</name>
<lastAccess>1679500826997</lastAccess>
<lastAccessAppLocal>03-22-2023 12:00 PM</lastAccessAppLocal>
<firstName>First</firstName>
<lastName>Last</lastName>
<roles>
<role id="12">
<name>Administrator</name>
<access id="1">Administrator</access>
</role>
</roles>
</user>
<user type="user" id="84394302.ma9h">
<name>First1 Last1</name>
<lastAccess>1671212881400</lastAccess>
<lastAccessAppLocal>01-16-2023 12:48 PM</lastAccessAppLocal>
<firstName>First1</firstName>
<lastName>Last1</lastName>
<roles>
<role id="18">
<name>Officer</name>
<access id="2">Basic Access with Share</access>
</role>
</roles>
</user>
</users>
</qdbapi>
Sorry, I don't have an answer.
Thank you anyway....