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.

Change account privilege set on the fly

Featured Replies

Hi all,

I'm trying to write a script that will automatically change the privilege set for the user on the fly, depending on the user type assigned. Does anyone know filemaker has any option to change the privilege for certain user?

The only way I found so far is to make the script Delete the Account, and then Add the account again with new privilege set. The problem with this approach is that account's password will be reset.

Thanks,

H.P.

I don't understand what you are trying to do. An Account can have one Priviledge Set, but a Priviledge Set can have many Accounts.

If you you want to change from User 1 to User 2 were User 2 has a different Priviledge Set, you can write a script for User 1 to log out and require User 2 to log in.

  • 2 weeks later...
  • Author

I'm sorry for the confusion. Lets me try to clarify my question. I have mutliple privilege sets (for example: "General User" and "Administrator". User 1 currently has privilege set "General User". What I want to do is to change the privilege set of user 1, from privilege set "General User" to privilege set "Administrator", using a script (eg.B) click on a button to change privilege).

Do you know if there's any way to do this in Filemaker?

I think you hit the problem the first time. You cannot do this and preserve the password (unless it's been stored at the time of account creation, which is a bit of a security risk), for the simple reason that you can't "get" the password from an existing account.

You can however write a script that asks them for a new password with a dialog, then sets it into all the files; then clears the global.

  • Author

That's a big problem smile.gif It's not the user who change the role... it's the administrator who will have access to change privilege etc. And I do not want to store password on the database because it's a security risk.

Thanks for the reply, Fenton.

Privilege Sets can not be set dynamically. That's by explicit design and purpose. Role based security madates that privileges be defined independently of user accounts. THe best thing to do--if you must have this functionality--is to assign the user two different accounts: one at one privilege level, the other at another one.

Steven

  • Author

FM7 allows changing user's privilege set through the privilege/administrative dialog-box. I do not understand why they do not allow that functionality with scriptmaker. Is it a big security risk? If not, I seriously hope that this function is on their priority list for the next update smile.gif

It makes admin job so much easier for user-management in an integrated application.

Privilege Sets can not be set dynamically. That's by explicit design and purpose. Role based security madates that privileges be defined independently of user accounts. THe best thing to do--if you must have this functionality--is to assign the user two different accounts: one at one privilege level, the other at another one.

This is not very helpful when you want a "superuser" to be able to PROMOTE users within your organization (which involves role changes), but do not want to give them access to the master password.

I don't see the logic behind doing this "by explicit design and purpose".

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.