How to Configure User Profile and Picture Providers
About User Profile and Picture Providers
-
The User Profile and User Picture are used in the Ribbon (\modules\Ribbon) and TypeAhead features.
-
The User Provider settings the file DefaultModuleSettings.js are shown below.
DefaultModuleSettings.js: Provider Settings
TypeAhead
Ribbon
How to Configure Sources Systems for User Profile and Picture Providers
Note: The User Profile and User Picture provider settings are very similiar, but they offer different options.
You can use different source systems for both:
- User Profile Providers (Impersonate option available)
and - User Picture Providers
User Provider Type
To configure your provider type, in each dialogue, use the following steps:
- Go to the SmartHub admin page at https://<SmartHubweb-app-url>/_admin
- Select the Provider settings (Profile Provider or Picture Provider) from the left side menu.
- The Providerproperties dialogue appears.
- Provider Type: Select the Provider type from the drop-down menu.
-
- SharePoint Online
- SharePoint OnPremise
- Active Directory
At this time, SmartHub supports only one User Profile.
How to Configure User Profile and Picture Provider Properties for SharePoint Online
SharePoint Online: User Profile Provider Properties
- Navigate to the User Profile Providers section.
- The User Provider Properties dialogue opens. Note the Impersonate option.
- Provider type:
- Select SharePoint Online
- Url:
- Specify your SharePoint Online URL.
-
If impersonate is not selected:
-
Username: Specify a user who has the required permissions to retrieve the necessary user properties.
-
Password: Specify the user password.
Account Name Claim Prefix:
-
Use this option if membership is the default value.
-
Specify the prefix that is used to identify encoded claims.
-
-
Multi value delimiter:
-
Specify the character that is used to delimit multi-value properties.
-
SharePoint Online: User Picture Provider Properties
Note: This dialogue does NOT provide an Impersonate option.
- From the Administration menu select User Picture Providers > Configure.
- The User Provider Properties dialogue appears.
Note: There is NO Impersonate option in this dialogue. - User Profile Cache Expiration (minutes):
- Enter the number of caching minutes here.
- App ID:
- Specify the
Client ID
of the High Trust App registered in SharePoint.
- Specify the
- Tenant:
- Specify your SharePoint Online URL.
- Specify your SharePoint Online URL.
- App secret key:
- Specify the secret key of the High Trust App registered in SharePoint.
-
Username:
-
Specify a user who has the required permissions to retrieve the necessary user properties.
-
-
Password:
-
Specify the user password.
-
How to Specify the Required Permissions in Azure
- Log in to your Azure portal as an administrator: http://portal.azure.com.
- Go to Azure Active Directory > App registrations.
- If you previously registered an app to talk to SharePoint Online, find that app.
- If there is no such app, click New registration to register the new app.
- If there is no such app, click New registration to register the new app.
- Enter the App information:
- Name: Enter the SmartHub user profile provider app.
- Supported account types: Determines who can use the application or use the API.
- Redirect URI: Enter your SmartHub URL such as https://search.company.com.
- Click Your app > API permissions > Add a permission > Select an API/Microsoft APIs > Microsoft Graph.
- Select the following Application permissions (your user interface may vary):
- User.Read.All: Read all users' full profiles
- User.Read.All: Read all users' full profiles
- Click Add permissions.
- You return to the App>API permissions page.
- Unless you are a tenant administrator, you see a caution message at the top of the page stating that Administrator consent must be given before some or all API permissions are activated.
- API permissions without granted consent state this under the STATUS heading in the table in the center of the page.
- Click the Grant Admin consent for [Organization Name] button under the Grant consent heading on the same page.
How to Configure User Profile and Picture Provider Properties for SharePoint 2013/2016/19
SharePoint 2013/16/19: User Profile Provider Properties
- Url:
- Enter the URL of the SharePoint 2013/2016/19 site that will be used for querying.
- Username:
- Enter the user name for the account that should be used during search.
- Leave this empty if you plan to impersonate the logged in user from SmartHub.
- Password:
- Enter the password for the account.
- Impersonate:
- Click to execute search as the user logged into SmartHub.
- These results are security trimmed for each logged in user.
- Audience Url:
- Specify the internal website URL of the SharePoint 2013/2016/19 site that will be used for querying.
- Registered Issuer Name:
- Specify the
Registered Issuer Name of the Security Token Issuer
created for the High Trust App.
- Specify the
- App Client ID:
- Specify the
Client ID
of the High Trust App registered in SharePoint.
- Specify the
- Tenant Authentication Realm:
- Specify the
Authentication Realm GUID
of the 2013/2016/19 SharePoint farm.
- Specify the
- Certificate path:
- Specify the relative path
- The path must start with a tilde followed by a forward slash characters (~/), to the location where the certificate (
.pfx
) is stored
- Certificate pass:
- Specify the password for the certificate.
- NameID Claim name:
- Specify the name of the claim that contains the SID of the user.
- This is required to impersonate the current user during searches.
- NameID Provider (optional):
- Enter the type of the
NameID
claim value.
- Enter the type of the
- Account Name Claim Prefix:
- Identify claims encoded with the default value.
- Multi value delimiter:
- Specify a character that will be used to delimit multi-value properties.
When you are using Azure Active Directory for authentication the value is onprem_sid
.
SharePoint 2013/16/19: User Picture Provider Properties
- User Profile Cache Expiration (minutes):
- Enter the number of caching minutes here.
- Username:
- Enter the name of the user who has the permissions that are required to retrieve the necessary user properties.
- Password:
- User password.
How to Configure User Profile and Picture Provider Properties for Active Directory
Active Directory: User Profile Provider Properties
- User Profile Cache Expiration (minutes):
- Enter the number of caching minutes here.
- LDAP Configuration URL:
- Enter your LDAP URL.
- For example,
ldap://DC=contoso, DC=com
- LDAP User:
- Enter the name of the user who has the permissions that are required to retrieve the necessary user properties.
- LDAP Password:
- Enter the user password.
Active Directory: User Picture Provider Properties
Use the same properties as above, in addition:
- Photo Property in AD:
- The photo property as defined in Active Directory
For more information see SharePoint 2010/2013: Claims Encoding.
How to Configure User Provider and Provider Properties for Azure Active Directory
Azure Active Directory: User Picture Provider Properties
Credentials used to access the Azure Active Directory and retrieve user photos
- User Profile Cache Expiration (minutes):
- Enter the number of caching minutes here.
- Azure app ID:
- Enter the ID of your Azure app
- Azure tenant:
- Enter the name of the tenant.
- Azure secret key:
- Enter the secret key defined in Azure.
The minimum permissions needed for fetching the user picture are as follows:
- Select Application permissions - User.Read.All: Read all users' full profiles
User Picture Provider General Settings
You can use different source systems for User Profile Providers and User Picture Providers.
To configure your user profile provider, use the following steps:
- Go to the Federator admin UI and click User Picture Settings > Configure.
- The User Picture Configuration page appears.
UserPicturePlaceHolder
in the web.config file.