We've all been there- you have a large organization who has out-of-date contact information. What do you do? You could go around to each department and ask them nicely to update their information, or send out an org-wide email prompting people to do so. However, this is tedious and oftentimes a pointless task. By the time you update one department, you're running to fix another. What if you could put the power back in the department's hands to do so? This is a struggle I faced recently as I was trying to find was I could conjure up some updated contact information for each department. As I did my research, I found that I was not alone in this endeavour as it seems that many IT professionals would love to make this process a little bit less painful. With this in mind, I introduce to you my latest flow! This flow will allow you to encourage users to update their contact information, without the overhead that comes with manual effort. In addition to this, this flow utilizes the recently added form functionality that is now incorporated into SharePoint lists!
Prerequisites
- First and Last name
- Job title and department
- Business phone number
- Room number
Open Microsoft Entra Connect Sync
Launch the Synchronization Rules Editor
Click "Add new rule"
Name |
Out to AD - Extended Attributes Writeback |
Connected System |
Active Directory |
Connected System Object Type |
User |
Metaverse Object Type |
Person |
Link Type |
Join |
Precedence |
200 |
Tag |
CustomAttributeWriteback |
Add Transformations for each attribute:
roomNumber |
physicalDeliveryOfficeName |
telephoneNumber |
telephoneNumber |
Department |
Department |
Title |
Title |
givenName |
givenName |
Surname |
sn |
Ensure Permissions:
Make sure your AD connector account has write permissions
Confirm the target OU allows updates
Open PowerShell and execute: Start-ADSyncSyncCycle -PolicyType Initial
Verify:
Check user profiles in Active Directory Users and Computers to confirm updates were applied
The List and Form
- First Name
- Last Name
- Department
- Job Title
- Room Number
- Office Phone
The Flow
- The flow is either manually or automatically triggered, depending on how you feel
- An Entra connector is used to get group members from a specific group based on the group ID)*
- From here, we then get items from a SharePoint list that contains our lovely form
- Then for each group member we begin the filtering process. It will check against the group and the SharePoint list in the two "For Each" loops we have created.
- A conditional is placed to determine if the group member's submission is in the SharePoint list:
- If it is not, then an email is sent to the user with a link to the form
- If it is, then the user is retrieved one more time (for debugging) and then updated. If done correctly, the values should then reflect in Entra ID when we go into the user's properties. If you're in a hybrid setting, now would also be a good time to see if the attributes have trickled downstream to you Active Directory.