Jump to content
We've recently updated our Privacy Statement, available here ×

Issue while Using profile attributes in security file for a domain


goyalrich

Recommended Posts

Hello,

 

I have created a domain with security , I want to apply row level security to get the restricted data.

All users have PROJECT_ID set as profile attribute, I want the user should get the records of their project only.

<principalExpression><![CDATA[authentication.getPrincipal().getAttributes().any{
it.getAttrName() in ['PROJECT'] }]]></principalExpression>           
            <filterExpression>testProfileAttribute(PROJECT_ID, 'PROJECT_ID')</filterExpression>
        </resourceAccessGrant>
 
When I am creating a adhoc view out of this domain, I get the data of that project only, but cannot apply addition filters on other fields through adhoc view.
What is the soultion for this?
 
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I can create filters with profile attributes set up.  I use testProfileAttribute, as described in the Ultimate Guide.One thing to look out for is that if the fields are restricted for certain users because of the profile attributes, that will not always work well. When you create reports formj tthe Ad HOc view, they also don't always restrict properly.

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...