Note: Tutorial available
Click here to view a tutorial on implementing advanced delegated forms.
Description
This advanced delegated form adds a new user to your Active Directory configuration.
All-in-one PowerShell setup script
Post-setup configuration
- Update the value of the following data sources to your own environment:
- AD-ou-generate-table-create
- Update the following global variables to your own environment:
ADuserUPNsuffix
- Update the following tasks' naming conventions to your own environment:
- AD-user-create-check-names
Manual setup
Dynamic form
Data source: AD-ou-generate-table-create
Description
Name | AD-ou-generate-table-create |
---|---|
Type | Static data source |
Model definition | Name Path Type Groups |
Value Definition
Customize the values for your own environment.
Data source: AD-user-create-check-names
Description
Name | AD-user-create-check-names |
---|---|
Type | Task data source |
Helper task | DataSource: AD-user-create-check-names |
Model definition | displayname samaccountname userPrincipalName |
Input
Key | Configurable in form | Required |
---|---|---|
givenName |
Yes | Yes |
lastName |
Yes | Yes |
middleName |
Yes | No |
Helper Task
Script
Customize the naming conventions for your own environment.
Local variables
Type | Name | Value |
---|---|---|
string | UPNsuffix |
{{variable.ADuserUPNsuffix}} |
Form field references
- Page 1
- Dropdown Account type
- Data source → AD-ou-generate-table-create
- Value field → Path
- Text Field → Name
- Dropdown Account type
- Page 2
- Grid Naming convention
- Data source → AD-user-create-check-names
- Input variable
givenName
→ Givenname (use value from other field) - Input variable
lastName
→ Last name (use value from other field) - Input variable
middleName
→ Middle name (use value from other field)
- Input variable
- Data source → AD-user-create-check-names
- Grid Naming convention
Global variables
ADuserUPNsuffix
View the advanced delegated form global variable reference.
Delegated form task: Create AD User
Name
AD-user-create
Script
Local variables
Type | Name | Value |
---|---|---|
string | blnexpdate |
{{form.blnExpDate}} |
string | defaultGroups |
{{form.ou.Groups}} |
string | department |
{{form.department}} |
string | employeeType |
{{form.ou.Type}} |
string | expiredate |
{{form.expiredate}} |
string | firstname |
{{form.givenname}} |
string | lastname |
{{form.lastname}} |
string | middlename |
{{form.middlename}} |
string | ou |
{{form.ou.Path}} |
string | password |
{{form.password}} |
string | samaccountname |
{{form.naming.samaccountname}} |
string | title |
{{form.title}} |
string | userprincipalname |
{{form.naming.userPrincipalName}} |