SOLVED

Bulk update custom user profile properties for SharePoint Online - scheduled sync

%3CLINGO-SUB%20id%3D%22lingo-sub-1223949%22%20slang%3D%22en-US%22%3EBulk%20update%20custom%20user%20profile%20properties%20for%20SharePoint%20Online%20-%20scheduled%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1223949%22%20slang%3D%22en-US%22%3E%3CP%3EWould%20like%20to%20sync%20custom%20user%20attributes%20from%20the%20AAD%2C%20such%20as%20employee%20id%2C%20employee%20grade%20into%20SharePoint%20online%20on%20a%20regular%2C%20pre-programmed%20basis.%20Say%2C%20every%20alternate%20Sunday%20at%2012AM.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20share%20the%20script%20required%20to%20enable%20this%20scheduled%20update%20of%20custom%20properties%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1223949%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1226246%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20update%20custom%20user%20profile%20properties%20for%20SharePoint%20Online%20-%20scheduled%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1226246%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EPlease%20refer%20the%20below%20link%20for%20syncing%20the%20custom%20properties%20to%20SharePoint%20UPS.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwindowssharepointserver.blogspot.com%2F2020%2F03%2Fpowershell-to-update-sharepoint-online.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwindowssharepointserver.blogspot.com%2F2020%2F03%2Fpowershell-to-update-sharepoint-online.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20it%20helps%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20resolves%20ur%20clarification%20or%20issue%3CBR%20%2F%3E-Sudharsan%20K...%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1226266%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20update%20custom%20user%20profile%20properties%20for%20SharePoint%20Online%20-%20scheduled%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1226266%22%20slang%3D%22en-US%22%3EThanks%20Sudharsan.%20Any%20idea%20about%20the%20script%20required%20to%20program%20this%20as%20a%20regular%20scheduled%20job%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1226310%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20update%20custom%20user%20profile%20properties%20for%20SharePoint%20Online%20-%20scheduled%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1226310%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EYou%20can%20use%20inhouse%20server%20and%20configure%20a%20window%20scheduler%20or%20you%20can%20you%20azure%20functions%20using%20this%20powershell%20and%20schedule%20it%20using%20Microsoft%20Power%20Automate.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Would like to sync custom user attributes from the AAD, such as employee id, employee grade into SharePoint online on a regular, pre-programmed basis. Say, every alternate Sunday at 12AM. 

 

Can anyone share the script required to enable this scheduled update of custom properties?

 

Thanks!

3 Replies
Highlighted
Hi,
Please refer the below link for syncing the custom properties to SharePoint UPS.
https://windowssharepointserver.blogspot.com/2020/03/powershell-to-update-sharepoint-online.html

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Highlighted
Thanks Sudharsan. Any idea about the script required to program this as a regular scheduled job?
Highlighted
Solution
Hi,
You can use inhouse server and configure a window scheduler or you can you azure functions using this powershell and schedule it using Microsoft Power Automate.