Search query for Entitlement

Hi All,
We are having requirement to generate campaign for all the users having a particular (Let’s suppose ABC) entitlement assigned.
I am writing the search query

@accounts(source.name:"XYZ") AND @access(displayName:ABC)

I am not getting the required result.
Let me know where I need to correct.

Thanks

Hi @shikhadeliveroo

Is there any special character in the entitlement display name? e.g if
the entitlement display name is: Test\ABC then try this
@accounts(source.name:"XYZ") AND @access(displayName:"Test\\ABC") that means if there’s a backslash then you need to add two backslashes to give the desired result.

Thanks

no, there is no any special character.

Can you try adding double quotes to the entitlement displayName? e.g
@accounts(source.name:"XYZ") AND @access(displayName:"ABC")

2 Likes

If you want any users that have that access item and for it to be on a particular source you can include both in the same object.

@access(source.name:"XYZ" AND displayName:"ABC")

You can also try some of the other fields listed on Searchable Fields to troubleshoot. Examples to just make sure they work. Also try adding * to get multiple items.

@access(name:"manager entitlement")

@access(id:"2c92808d60ec4e900161066ff7c80178")

@access(description:"Admin*")

Using the search page you can view the details of an entitlement with just * or name*:

Then see more details by clicking on that line. In this view I have enable the dev tools to see the full JSON response which can also help identify what to search for.

2 Likes

Hi @shikhadeliveroo
Try this - @accounts(source.name:“XYZ”) AND @access(name:“ABC”)

1 Like

This worked. Thanks @rohitmisal45

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.