Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Accounts with access to part of a record, depending on value of field

Featured Replies

  • Newbies

Hey,

I have an employee database and users. The records are in one table and contain all details of an employee.

The users can be simple users or staffmembers.

The simple users have only read access to some lay-outs that show some fields. They have access to all records of current employees.

There are also staff users that should have access to all details of their employees (all fields) and read access to the employees of other teams.

What is the best way to set this up?

Make several privilege sets and combine them into one complex privilege? What would be the best check to see if a user has full or limited access?

tia,

Michel

... your not making yourself very clear... but... anyway, just generate seperate privelege sets for staff, employees and employers... that way you can restrict access around the database both through filemaker security and custom scripts such as

if(get(privalegesetname) = "x"

do Y

end if

Edited by Guest

  • Author
  • Newbies

Thank you for your answer.

I have already have a lot of schemas for privileges. But, what I run into is the fact that, depending on the value of a field, I want to give access to part of that record to some staff members.

It's a shame I am not very clear, so let me try to explain:

table personnel

id

works at department number ...

name

street

date of birth

health status

criminal record

Now, there are staff members. Say, the head of department x

When a person works at department x, his supervisor can see all fields of the records. And even get's edit access to fields via some lay-outs.

But, when the person doesn't work at the department x, the staffmember of department x should only see the name and address field, but not his crimimal record...

So, my question is how to set this up? I have the feeling I should be able to combine some privileges, but will those combine well? How to prevent all those long listings of in the lay-outs?

To solve the "showing fields you don't want to be shown" issue, you may want to consider layouts that are specific to a privilege set when necessary. In other words, If [ Get (PrivilegeSetName) = "Staff", then go to Layout_ForStaffMember, If [Get (PrivilegeSetName) = "Simple", got to the layout designed for that privilege set, etc.

For just controlling the user's editing, not viewing, I believe that's best controlled in the privilege sets.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.