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

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

Recommended Posts

Posted

Hello,

I have a table in a database that contains, user name, passwrod, and priveledge set.

How can I have Filemaker use this, so I do not have to input all 400+ users manually?

Posted

You should use the built in Accts and & Privs functionality of FM. Why would you want to store that kind of data in a table? It is not secure.

If the tediousness of manually entering all those 400 users is what is bothering you, then why not write a loop to do it for you? All you would have to do is create the priviledge sets that you need first. Then do a find for all users of each privilege set and run your loop script, referencing your user and password fields in conjunction with the Add Account script step.

Posted

That worked flawlessly! I did not explore the account script steps before.

Is there a way to assign the privledge set through a script as well?

Posted

No, but if you create the privilege sets first, and then do the find for each privilege set, all you really have to do is change the option in the Add Account step to whatever Privilege set that you want. So when it runs the loops to create all those accounts, it will assign all thuose found records with the privilege set.

This might take a few minutes, but its better than manually changing all 400 accounts' privilege set.

Posted

I can not believe I missed the obvious. If I use an IF statement referenceing the privledge set field, I can essentially script the assignment of privledge sets.

Posted

Oh that is right, you have a field in the table already that has a privilege set name. As long as the values match up then yes you technically can automate the entire thing. Good job.

Posted

I have a field set with Radio Buttons of the possible Privledge Sets, and if (IsEmpty) then it deletes the record and exits.

Can you give me other examples of errors I should trap for?

This topic is 6517 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.