Jump to content

Scripting Create Account/Privs


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

Recommended Posts

I want to have my user "admin" create accounts and have the ability to choose privs sets, but I want to script this. I do not want "admin" to get to the define accounts dialog, and therefore the developer account and password.

I thought that I could have a nice popup of priv sets, and then use the Create Account script step of create the account, with the chosen priv set. Seems like I'm stuck.

Link to comment
Share on other sites

You can do that. Define a value list with your privilege set names, and use a script to create the account with the proper privilege set.

Since the target privilege set cannot be chosen from a calculated (or field) value, use If[] branching to choose the right Add Account[] step, where each one uses a different privilege set. Keep in mind that [Full Access] accounts cannot be created via scripts.

If [ SelectedPrivSet = "HR" ]

Add Account [ Account Name: AccountName ; Password: AccountPassword; Privilege Set: "HR" ]

Else If [ SelectedPrivSet = "Marketing" ]

Add Account [ Account Name: AccountName ; Password: AccountPassword; Privilege Set: "Marketing" ]

...

End If

Link to comment
Share on other sites

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