Skip to content

Tools4everBV/HelloID-Conn-SA-Full-AD-AFAS-Update-UPN-Email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This HelloID Service Automation Delegated Form provides updates for user principal name and email on an AD user account and AFAS employee. The following options are available:

  1. Search and select the target AD user account
  2. Show basic AD user account attributes of the selected target user
  3. Enter new values for the following AD user account attributes: UserPrincipalName and EmailAddress
  4. The entered UserPrincipalName and EmailAddress are validated
  5. AD user account [UserPrincipalName and EmailAddress] and AFAS employee [EmAd] attribute are updated with new values
  6. Writing back [EmAd] in AFAS will be skiped if the employee is not found in AFAS

Versioning

Version Description Date
1.0.0 First release 2023/10/24

Table of Contents

All-in-one PowerShell setup script

The PowerShell script "createform.ps1" contains a complete PowerShell script using the HelloID API to create the complete Form including user-defined variables, tasks and data sources.

Please note that this script assumes none of the required resources do exist within HelloID. The script does not contain versioning or source control

Getting started

Please follow the documentation steps on HelloID Docs in order to set up and run the All-in-one Powershell Script in your own environment.

Post-setup configuration

After the all-in-one PowerShell script has run and created all the required resources. The following items need to be configured according to your own environment

  1. Update the following user-defined variables
Variable nameExample valueDescription
ADusersSearchOU[{ "OU": "OU=Disabled Users,OU=HelloID Training,DC=veeken,DC=local"},{ "OU": "OU=Users,OU=HelloID Training,DC=veeken,DC=local"}]Array of Active Directory OUs for scoping AD user accounts in the search result of this form
AFASBaseUrlhttps://yourtennantid.rest.afas.online/profitrestservicesThe URL to the AFAS environment REST service
AFASToken< token>< version>1< /version>< data>yourtoken< /data>< /token>The AppConnector token to connect to AFAS

Manual resources

This Delegated Form uses the following resources in order to run

Powershell data source 'AD-AFAS-account-update-upn-email-lookup-user-generate-table'

This Powershell data source runs an Active Directory query to search for matching AD user accounts. It uses an array of Active Directory OU's specified as HelloID user-defined variable named "ADusersSearchOU" to specify the search scope. This data source returns additional attributes that receive the current values for UserPrincipalName/EmailAddress and also split them into a prefix and a suffix for future uses.

Powershell data source 'AD-AFAS-account-update-upn-email-table-user-details'

This Powershell data source runs an Active Directory query to select an extended list of user attributes of the selected AD user account.

Powershell data source 'AD-AFAS-account-update-upn-email-validation'

This Powershell data source runs an Active Directory query to validate the uniqueness of the new UserPrincipalName and EmailAddress. Both values are also validated in ProxyAddresses. And will return a "Valid" or "Invalid" text. This text is used for validation in the form.

Delegated form task 'AD AFAS Account - Update UPN - Email'

This delegated form task will update two systems. On the AD user account the attributes UserPrincipalName, EmailAddress and ProxyAddresses will be updated (old Primairy 'SMTP:' will be replaced by a alais 'smtp:'). On the AFAS employee the attributes EmAd will be updated.

Add another systems to update

It is possible to add another systems to update the UserPrincipalName and EmailAddress by adding them in the task script. It is also possible to send a email with the task script.

Getting help

If you need help, feel free to ask questions on our forum

HelloID Docs

The official HelloID documentation can be found at: https://docs.helloid.com/

Releases

No releases published

Packages

No packages published