Are you applying the Device Configuration Profile Policy to the Entra Security Group containing devices or users? Please note that if applied to devices, it will affect all users signing into the target device.
If you wish to ensure that the policy is only applicable to specific users, create an Entra Security Group, add the relevant users, and target this Entra Security Group in the Intune Policy.
Hope this helps and answers your query.
---If the response is helpful, please click "Accept Answer" and upvote it.---