Refactor account specification examples in assigned-access-configuration-file.md

This commit is contained in:
Paolo Matarazzo
2024-02-27 17:55:25 -05:00
parent c806c2bed7
commit 76b617ab1d

View File

@ -399,56 +399,39 @@ The following example shows how to specify an account to sign in automatically,
Individual accounts are specified using `<Account>`. Individual accounts are specified using `<Account>`.
:::row:::
:::column span="2"::: #### Local user
#### Scenario
:::column-end:::
:::column span="2":::
#### XML snippet
:::column-end:::
:::row-end:::
:::row:::
:::column span="2":::
**Local user**
Local account can be entered as `devicename\user`, `.\user`, or just `user`. Local account can be entered as `devicename\user`, `.\user`, or just `user`.
:::column-end:::
:::column span="2":::
```xml ```xml
<Config> <Config>
<Account>user</Account> <Account>user</Account>
<DefaultProfile Id="{GUID}"/> <DefaultProfile Id="{GUID}"/>
</Config> </Config>
``` ```
:::column-end:::
:::row-end:::
:::row:::
:::column span="2":::
**Active Directory user**
Domain accounts should be entered as `domain\samAccountName`. #### Active Directory user
:::column-end:::
:::column span="2"::: Domain accounts must be entered using the format `domain\samAccountName`.
```xml ```xml
<Config> <Config>
<Account>contoso\user</Account> <Account>contoso\user</Account>
<DefaultProfile Id="{GUID}"/> <DefaultProfile Id="{GUID}"/>
</Config> </Config>
``` ```
:::column-end:::
:::row-end:::
:::column span="2":::
**Microsoft Entra user**
Microsoft Entra account must be specified with the format: `AzureAD\{UPN}`. `AzureAD` must be provided *as is*, then follow with the Microsoft Entra user principal name (UPN). For example, **AzureAD\user@contoso.onmicrosoft.com**. #### Microsoft Entra user
:::column-end:::
:::column span="2"::: Microsoft Entra accounts must be specified with the format: `AzureAD\{UPN}`. `AzureAD` must be provided *as is*, then follow with the Microsoft Entra user principal name (UPN).
```xml ```xml
<?xml version="1.0" encoding="utf-8"?><Config><Account>AzureAD\john@contoso.onmicrosoft.com</Account><DefaultProfile Id="{GUID}" /></Config> <Config>
<Account>AzureAD\user@contoso.onmicrosoft.com</Account>
<DefaultProfile Id="{GUID}"/>
</Config>
``` ```
:::column-end:::
:::row-end:::
> [!IMPORTANT] > [!IMPORTANT]
> Before applying the Assigned Access configuration, make sure the specified user account is available on the device, otherwise it fails. > Before applying the Assigned Access configuration, make sure the specified user account is available on the device, otherwise it fails.