User device affinity in Microsoft System Center Configuration Manager 2012 is a method of associating a user with one or more specified devices. This can remove the requirement to know the names of a user’s devices when you deploy applications. You can define primary devices that are typically the device that a user uses on a daily basis to perform their work. When you create an affinity between a user and a device, this provides further options for deploying software. For example, if a user requires Microsoft Office Visio, you can install it on the user’s primary device by using a Windows Installer deployment. However, on a device that is not a primary device, you might deploy Microsoft Office Visio as an App-V virtual application. You can also use user device affinity to pre-deploy software on a user’s device when the user is not logged in.
How to Manually Configure User Device Affinity
Use the following procedures to manually configure the affinity between users and devices from the Configuration Manager console.
To configure primary users for a device
-
In the Configuration Manager console, click Assets and Compliance.
-
In the Assets and Compliance workspace, click Devices.
-
Select a device from the list and then, in the Device tab, click Edit Primary Users.
-
In the Edit Primary Users dialog box, search for and select the users you want to add as primary users for the selected device and then click Add.
Note The Primary Users list shows users that are already primary users of this device and the method by which the user device relationship was assigned. -
Click OK to close the Edit Primary Users dialog box.
To configure primary devices for a user
-
In the Configuration Manager console, click Assets and Compliance.
-
In the Assets and Compliance workspace, click Users.
-
Select a user from the list and then, in the Device tab, click Edit Primary Devices.
-
In the Edit Primary Devices dialog box, search for and select the devices you want to add as primary devices for the selected user and then click Add.
Note The Primary Devices list shows devices that are already configured as primary devices for this user and the method by which the user device relationship was assigned. -
Click OK to close the Edit Primary Devices dialog box.
How to configure the site to automatically create user device affinities
Use the following procedure to enable your Configuration Manager 2012 site to automatically create user device affinities from usage data reported by client devices.
To configure the site to automatically create user device affinities
-
In the Configuration Manager console, click Administration.
-
In the Administration workspace, click Client Settings.
-
To modify the default client settings, right-click Default Client Agent Settings, and then click Properties. To create custom client agent settings, right-click Client Settings, click Create Custom Settings, and then click Create Custom Device Settings.
Note For more information about configuring client settings, see How to Configure Client Settings in Configuration Manager 2012. -
Configure the following under Device Settings:
- Usage based affinity threshold (minutes) -
Specify the number of minutes of usage before a user device
affinity is created.
- Usage based affinity threshold (over days) –
Specify the number of days over which the usage based affinity
threshold is measured.
Note For example, if Usage based affinity threshold (minutes) is specified as 60 minutes and Usage based affinity threshold (over days) is specified at 5 days, the user must use the device for 60 minutes over a period of 5 days to automatically create a user device affinity. - Usage based threshold notification (minutes)
– Specify how often that client computers check and report user
device affinity information to the site server.
- Allow usage data collected from device to
define relationship – From the drop-down list, select True to
enable the site to automatically create user device affinities. If
you select False then an administrative user must approve all user
device affinity assignments.
- Usage based affinity threshold (minutes) -
Specify the number of minutes of usage before a user device
affinity is created.
-
Click OK to close the client settings dialog box.
How to import a file that contains user device affinities
You can import a file containing user device affinities to enable you to create many relationships at one time. Users and devices must have been discovered and exist as resources in the Configuration Manager database, otherwise this procedure will fail.
Use this procedure to import a file containing user and device affinities to Configuration Manager 2012.
To import a file that contains user device affinities
-
In the Configuration Manager console, click Assets and Compliance.
-
In the Assets and Compliance workspace, click Users or Devices.
-
On the Home tab, in the Create group, click Import User Device Affinity.
-
On the Choose Mapping page of the Import User Device Affinity Wizard, specify the following information:
- File name – Specify a comma-separated values
(.csv) file that contains a list of users and devices you want to
create an affinity between. Each user and device pair must be on a
separate line separated by a comma. Use the format <user
name>,<domain name\device name>.
Important The users and devices listed in the file must already exist as resources in the Configuration Manager database. If they do not exist, the import will fail. - This file has column headings for reference
purposes – If the comma-separated values file has a header line,
select this option and the header line will be ignored during the
import.
- File name – Specify a comma-separated values
(.csv) file that contains a list of users and devices you want to
create an affinity between. Each user and device pair must be on a
separate line separated by a comma. Use the format <user
name>,<domain name\device name>.
-
If the file you are importing contains more than two items on each line, you can use the Column and Assign as controls to specify which columns represent users and devices and which columns will be ignored during import.
-
Click Next and then complete Import User Device Affinity Wizard.
How to allow users to create a user device affinity
Use these procedures to allow users to create their own user device affinity from the Application Catalog.
To configure the site to allow users to create a user device affinity
-
In the Configuration Manager console, click Administration.
-
In the Administration workspace, click Client Settings.
-
To modify the default client settings, right-click Default Client Agent Settings, and then click Properties. To create custom client agent settings, right-click Client Settings, click Create Custom Settings, and then click Create Custom User Settings.
Note For more information about configuring client settings, see How to Configure Client Settings in Configuration Manager 2012. -
In the Allow user to define relationship drop-down list, select True.
-
Click OK to close the client settings dialog box.
To configure a user device affinity
-
In the Application Catalog, click My Systems.
-
Enable the option I regularly use this computer to do my work.