-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
GitHub Action edited this page Sep 5, 2025
·
4 revisions
SPSFbaSync.ps1 is a PowerShell script to Synchronize user information (email, display name, etc.) from a SQL Membership Provider (Forms Based Authentication) database to SharePoint User Profile Service.
- PowerShell 5.1 or later.
- Necessary permissions to access the SharePoint Farm.
- Ensure the script is placed in a directory accessible by the user.
- Administrative privileges on the SharePoint Server
- SharePoint farm with User Profile Service Application configured.
- SQL Membership Provider database accessible
- Read access to SQL membership Provider database
| Parameter | Description |
|---|---|
SiteUrl |
Target site URL. |
-ConfigFile |
Specifies the path to the configuration file. |
-Action |
(Optional) Use the Action parameter equal to Install to add the script in taskscheduler, InstallAccount parameter need to be set. Use the Action parameter equal to Uninstall to remove the script from taskscheduler. |
-InstallAccount |
(Optional) Need parameter InstallAccount whent you use the Action parameter equal to Install. |
.\SPSFbaSync.ps1 -ConfigFile 'contoso-PROD.json'.\SPSFbaSync.ps1 -ConfigFile 'contoso-PROD.json' -Action Install -InstallAccount (Get-Credential).\SPSFbaSync.ps1 -ConfigFile 'contoso-PROD.json' -Action UninstallThe script logs the status of each task, including success or failure, and saves it to the specified log file or the default location.
- Ensure the provided credentials have access to the SharePoint Farm.
- Test the script in a non-production environment before deploying it widely.
For issues or questions, please contact the script maintainer or refer to the project documentation.