Intune Local admin

Vanier Francis 141 Reputation points
2021-06-28T23:20:57.707+00:00

How do you give a group or a user Local admin rights to specific computer on Azure AD or intune joined PCs?

Microsoft Security Intune Other
{count} votes

Accepted answer
  1. Luchuan Deng-MSFT 81 Reputation points
    2021-06-29T08:19:47.613+00:00

    Hi,@Vanier Francis
    Just like what Jason said, definitely we can give local admin rights to a user or a group with Intune. And it is worth mentioning that we get a new Policy CSP (start from Windows 10, version 20H2)to manage Local Users and Groups with Microsoft Intune: LocalUsersAndGroups. With this new setting, we are able to add members to local administrators group.
    Note: As the characters limitation of comment, I will reply it in Answer.

    Below I will show an example of how the setting can be used to manage the Administrators group of an AAD joined device. In below example I use the Group action U (update) to add an user account and a group to the local Administrators group and don`t overwrite the existing members.
    110140-image.png

    To add an Azure AD user account we can use the username, but we need to put AzureAD\ before the username like"AzureAD******@m365x137916.onmicrosoft.com"

    For adding Azure AD groups using this policy, we must use the group SID. The SID of an Azure AD group can be easily found using the Graph Explorer. Query the group using the Object ID of the Group:
    https://graph.microsoft.com/v1.0/groups/ObjectID. It should be noted that you can find the Object ID of the Group in Azure portal
    110166-image.png

    110173-image.png

    Now it’s time to deploy the LocalUsersAndGroups policy to our devices using a Custom configuration profile with Microsoft Intune.

    1. Sign-in to the Endpoint Manager admin center-Devices –Configurations profiles-Create profile
      110192-image.png

    2.Add an OMA-URL
    110174-image.png

    110193-image.png

    OMA-URL: ./Device/Vendor/MSFT/Policy/Config/LocalUsersAndGroups/Configure
    Value:
    <GroupConfiguration>
    <accessgroup desc = "Administrators">
    <group action = "U" />
    <add member = "AzureAD******@m365x137916.onmicrosoft.com"/>
    <add member = "S-1-12-1-3293915145-1237716286-3547282111-4250706607"/>
    </accessgroup>
    </GroupConfiguration>

    3.Assign the profile to your group
    110211-image.png

    4.Click save and next to finish the deployment.

    Hope it can help

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jason Sandys 31,406 Reputation points Microsoft Employee Moderator
    2021-06-29T01:46:15.73+00:00

    There's no way to give users admin rights on a single system in Azure AD -- it's all or nothing with Azure AD.

    With Intune, this is possible though. Here's a great blog that discusses this: https://www.jeffgilb.com/managing-local-administrators-with-azure-ad-and-intune/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.