Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Privilege Set Restrictions using Extended Privileges


This topic is 5166 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I posted this to another list but am heading for a meeting and need to see if there are any solutions or options.

I have a database built using the separation model with an interface and data file.

They want to restrict users to only allow them to view records assigned to their region. So in the data file I set up a privilege set for each region and with an extended privilege that matches the region name set in the record.

So the privilege set record access is configure to allow View when:

PatternCount ( Get ( CurrentExtendedPrivileges ) ; Region ) >0

In theory this should work but seems to fail to restrict access when viewing the records through either the interface file or directly in the data file.

Testing some other restrictions like only allowing them to view records they created seem to work but I need to allow access to other records for their region created by others.

Any thoughts? Can FileMaker restrict record access based on Extended Privileges or do I need to figure out some what to restructure the database so that each region has their own table?

Steve

Posted

I think I have found a less elegant solution by setting a global field to the extended privileges when logging in and then validating the access restrictions against that global rather than trying to validate it dynamically with the Get(currentextendedprivileges).

Posted

I posted this to another list....In theory this should work but seems to fail to restrict access when viewing the records through either the interface file or directly in the data file.

Next time, try here or Real Tech first for these type questions. :P>)

This is essentially expected and behavior in FileMaker® Pro 10 and FileMaker® Pro 11.

See thefmkb.com/7161 Tech Info for an explanation of how Extended Privileges are evaluated.

In FileMaker Pro 11 there is a new Get Function that further refines this process. See thefmkb.com/7534 Tech Info for information about the Get(AccountExtendedPrivileges) function.

Steven

This topic is 5166 days old. Please don't post here. Open a new topic instead.

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...

Important Information

By using this site, you agree to our Terms of Use.