Hi @a.elhajhouj , thanks for your follow-up comment. To create a dynamic user group these steps should work. Please let me know otherwise.
- Sign in to the Azure Portal
- Navigate to Azure Active Directory > Groups.
- Click on + New group.
- In the Group type field, select Security.
- Provide a name and description for the group.
- In the Membership type field, select Dynamic User.
- Click on Add dynamic query.
Now, you need to create a dynamic membership rule to include users with corporate Android devices. Unfortunately, you cannot create a dynamic user group based on device attributes directly. However, you can create a dynamic device group with the desired attributes and then use that group to apply the Conditional Access policy.
To create a dynamic device group for corporate Android devices, follow these steps:
- In the Membership type field, select Dynamic Device.
- Click on Add dynamic query.
- Enter the following rule in the Advanced rule box:
(device.deviceOSType -eq "Android") -and (device.deviceOwnership -eq "Company")
- Click on Save and then Create to create the dynamic device group.
Now that you have a dynamic device group for corporate Android devices, you can create a Conditional Access policy and target this group. Follow these steps:
- Navigate to Azure Active Directory > Security > Conditional Access.
- Click on + New policy.
- Provide a name for the policy.
- Under Assignments, select Users and groups.
- Under Include, click on Select users and groups and choose the dynamic device group you created earlier.
- Configure the rest of the policy settings as needed, such as the targeted cloud apps and access controls.
- Click on Create to save the policy.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James