Open in the explorer

User management of sharing user name, account picture, and domain information with apps (not desktop apps)

Gestion par l’utilisateur du partage des informations de nom d’utilisateur, d’image de compte et de domaine avec les applications (et non pas les applications bureautiques)

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › User Profiles FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Profils utilisateur
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
UserProfiles.admx
Internal name
UserProfiles/UserInfoAccessAction

Explanation

This setting prevents users from managing the ability to allow apps to access the user name, account picture, and domain information.

If you enable this policy setting, sharing of user name, picture and domain information may be controlled by setting one of the following options:

"Always on" - users will not be able to change this setting and the user's name and account picture will be shared with apps (not desktop apps). In addition apps (not desktop apps) that have the enterprise authentication capability will also be able to retrieve the user's UPN, SIP/URI, and DNS.

"Always off" - users will not be able to change this setting and the user's name and account picture will not be shared with apps (not desktop apps). In addition apps (not desktop apps) that have the enterprise authentication capability will not be able to retrieve the user's UPN, SIP/URI, and DNS. Selecting this option may have a negative impact on certain enterprise software and/or line of business apps that depend on the domain information protected by this setting to connect with network resources.

If you do not configure or disable this policy the user will have full control over this setting and can turn it off and on. Selecting this option may have a negative impact on certain enterprise software and/or line of business apps that depend on the domain information protected by this setting to connect with network resources if users choose to turn the setting off.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche les utilisateurs de gérer la capacité d’autoriser les applications à accéder aux informations de nom d’utilisateur, d’image de compte et de domaine.

Si vous activez ce paramètre de stratégie, le partage des informations de nom d’utilisateur, d’image de compte et de domaine peut être contrôlé en définissant une des options suivantes :

« Toujours activé » : les utilisateurs ne pourront pas modifier ce paramètre et le nom d’utilisateur et l’image de compte seront partagés avec les applications (et non pas avec les applications bureautiques). En outre, les applications (et non pas les applications bureautiques) qui disposent d’une fonctionnalité d’authentification d’entreprise pourront également récupérer l’UPN de l’utilisateur, le SIP/l’URI et le DNS.

« Toujours désactivé » : les utilisateurs ne pourront pas modifier ce paramètre et le nom d’utilisateur et l’image de compte ne seront pas partagés avec les applications (et non pas les applications bureautiques). En outre, les applications (et non pas les applications bureautiques) qui disposent d’une fonctionnalité d’authentification d’entreprise ne pourront pas récupérer l’UPN de l’utilisateur, le SIP/l’URI et le DNS. Cette option peut avoir un impact négatif sur certains logiciels professionnels et/ou applications métier qui dépendent des informations de domaine protégées par ce paramètre pour se connecter à des ressources réseau.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’utilisateur peut entièrement contrôler ce paramètre et l’activer ou le désactiver. Cette option peut avoir un impact négatif sur certains logiciels professionnels et/ou applications métier qui dépendent des informations de domaine protégées par ce paramètre pour se connecter à des ressources réseau si l’utilisateur choisit de désactiver ce paramètre.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
AllowUserInfoAccess
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: UserProfiles/UserInfoAccessAction
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'AllowUserInfoAccess' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Action
# Possible options:
#   Always on = 1
#   Always off = 2
Set-ItemProperty -Path $k -Name 'AllowUserInfoAccess' -Value 2 -Type DWord

Disable

# Disable: UserProfiles/UserInfoAccessAction
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'AllowUserInfoAccess' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": UserProfiles/UserInfoAccessAction
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'AllowUserInfoAccess' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Action:Action :AllowUserInfoAccessDrop-down listenumAllowUserInfoAccessREG_DWORD
Required · Default choice (UI): #1
LabelValue
Always onREG_DWORD = 1
Always offREG_DWORD = 2

Availability