Follow the steps below to add a connection to your Entra ID tenant using the Central Administration:
Navigate to the SharePoint Central Administration > Security > EntraCP Global configuration.
In the section Register a new Microsoft Entra ID tenant, fill the required fields.
Click on Add tenant to save your changes.
The Powershell script below adds Entra ID tenants using both a client secret and certificate:
Add-Type-AssemblyName"Yvand.EntraCP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=65dc6b5903b51636"$config=[Yvand.EntraClaimsProvider.EntraCP]::GetConfiguration()$settings=$config.Settings# Add a tenant using a client secret$tenant=New-Object"Yvand.EntraClaimsProvider.Configuration.EntraIDTenant"$tenant.Name="TENANTNAME.onmicrosoft.com"$tenant.SetCredentials("clientId","clientSecret")$settings.EntraIDTenants.Add($tenant)$config.ApplySettings($settings,$true)# Add a tenant using a client certificate$tenant=New-Object"Yvand.EntraClaimsProvider.Configuration.EntraIDTenant"$tenant.Name="TENANTNAME.onmicrosoft.com"$certificateFilePath="pfxCertificateFilePath"$certificatePassword="pfxCertificatePassword"$tenant.SetCredentials("clientId",$certificateFilePath,$certificatePassword)$settings.EntraIDTenants.Add($tenant)$config.ApplySettings($settings,$true)# Commit the configuration to the database$config.Update($true)
The new credentials will replace the existing ones and will be used immediately by EntraCP. You can use the central administration only to set a new client secret. To set a new client certificate, use PowerShell.
Follow the steps below to edit a connection to your Entra ID tenant using the Central Administration:
Navigate to the SharePoint Central Administration > Security > EntraCP Global configuration.
In the section Registered Microsoft Entra ID tenants, click on Edit next to the tenant you want to update.
Make your necessary changes.
Click on Update to save them.
The Powershell scripts below update the credentials for an existing Entra ID tenant: