To import custom AD attribute we have to perform the ... · To import custom AD attribute we have...
Transcript of To import custom AD attribute we have to perform the ... · To import custom AD attribute we have...
To import custom AD attribute we have to perform the following steps:
Create New Attribute in AD with property.
Create the New User profile Property in the User Profile Service.
Create a matching property in the Metaverse Designer.
Map the Custom Property in the ADMA.
Refresh Schema for SPMA.
Map the Custom Property in the SPMA.
Run Full Sync.
If a custom attribute is created in Active Directory, it cannot be removed.
Installation of Active Directory Schema Snap-In
Active Directory Schema is an administrative tool that can be used for Active
Directory Schema updates and changes. To install it, you need to run regsvr32 schmmgmt.dll
command using an elevated prompt (Using Run as administrator option).
Once Active Directory Schema administrative tool is installed, it will be available on MMC.
Creation of a new Active Directory Attribute
In the Active Directory Schema administrative tool, do a right-click on Attributes and then
select Create Attribute.
Click on Continue (The warning that is displayed is to inform that the creation of a
new Active Directory attribute is not a reversible operation and that it cannot be
removed)
Populate the following information:
o Common Name
o LDAP Display Name
o Unique X500 Object ID
https://gallery.technet.microsoft.com/scriptcenter/Generate-an-Object-
4c9be66a
o Syntax (http://technet.microsoft.com/en-us/library/cc961740.aspx)
o Description (Optional)
o Minimum (Optional)
o Maximum (Optional)
o Multi-Valued (Enable it only if you would like to have a multi-valued
attribute)
For Unique X500 Run the PowerShell script from TechNet which will give you ID.
On Active Directory Schema administrative tool, go to Classes, select the class to update then go to
its properties:
In our case we are selecting Person class and then select Properties
Navigate to Attributes tab and select Add. Select newly created attribute and click OK.
Check if the attribute is populated in the Attributes list as below.
Click Apply and OK.
Second Create New User Property in User Profile. Navigate to User Profile and select Manage User Properties under People Section.
Select New Property.
Fill the Property Settings as per your requirement.
Create a matching property in the Metaverse Open Service Manager Select Metaverse Designer Select Person and click on Add Attribute.
Create the Mapping in the ADMA Select ADMA and click on Properties.
Select Show All and search for your newly created Attribute in Metaverse.
Create the Mapping in the ADMA
Select ADMA and click on Properties.
Select Configure Attribute Flow.
Data source object type: User
Mapping Type: Direct
Metaverse Object Type: Person
Data Source Attribute: Team
Flow Direction: Import
Metaverse attribute: Team
Once everything is selected Click on New.
You will see the attribute in the page as below screenshot
Refresh Schema for SPMA Select SPMA and click Refresh Schema
Select OK
Enter the SharePoint Credentials and click OK
The schema will get refresh. You can see the below highlighted line. Click Close.
Mapping the SPMA attribute.
Open SPMA and select properties.
Click on Select Attributes.
Select Show All
And select the SP attribute which we created in SharePoint User Profile.
Select SPMA and select Properties.
Click on Configure Attribute Flow
Data source object type: User
Mapping Type: Direct
Metaverse Object Type: Person
Data Source Attribute: SP-Team
Flow Direction: Export (Select Allow Nulls as per your requirement)
Metaverse attribute: Team
Once everything is selected Click on New.
Now run the Full SharePoint Sync using PowerShell.
Once completed check the SharePoint User Profile Properties for the users.
Hope this guide help you to create custom User profile properties in SharePoint and AD and map
them accordingly.