Hi

here the user account entitlement defined in Salesforce driver to assign profiles in Salesforce

<?xml version="1.0" encoding="UTF-8"?><entitlement conflict-resolution="union" description="Grants Salesforce.com user accounts based on available Salesforce profiles." display-name="User Account Entitlement">
<values multi-valued="false">
<query-app>
<query-xml>
<nds dtdversion="2.0">
<input>
<query class-name="Profile" scope="subtree">
<search-class class-name="Profile"/>
<read-attr attr-name="Name"/>
<read-attr attr-name="UserLicenseId"/>
</query>
</input>
</nds>
</query-xml>
<result-set>
<display-name>
<token-attr attr-name="Name"/>
</display-name>
<description>
<token-attr attr-name="UserLicenseId"/>
</description>
<ent-value>
<token-association/>
</ent-value>
</result-set>
</query-app>
</values>
</entitlement>


with it, this query is executed:

<soapenv:Body>
<urn:query>
<urn:queryString>SELECT Id, Name, UserLicenseId FROM Profile WHERE Name LIKE '%'</urn:queryString>
</urn:query>
</soapenv:Body>


Other entitlement exists for assign Role in Salesforce.

Now, we are studying the Permission Sets in Salesforce, and we need the results for this query

SELECT Id,Name FROM PermissionSet

for it, we have created a the new permission set entitlement:


<?xml version="1.0" encoding="UTF-8"?><entitlement conflict-resolution="union" description="Grants Salesforce.com PermissionSets." display-name="PermissionSet Entitlement">
<values multi-valued="false">
<query-app>
<query-xml>
<nds dtdversion="2.0">
<input>
<query class-name="PermissionSet" scope="subtree">
<search-class class-name="PermissionSet"/>
<read-attr attr-name="Id"/>
<read-attr attr-name="Name"/>
</query>
</input>
</nds>
</query-xml>
<result-set>
<display-name>
<token-attr attr-name="Name"/>
</display-name>
<description>
<token-attr attr-name="Id"/>
</description>
<ent-value>
<token-association/>
</ent-value>
</result-set>
</query-app>
</values>
</entitlement>


but with no result. am I forgetting something?? Is it possible to add a new entitlement with a custom query?

Thanks in advance