How to prevent a normal user to see a subscription or cancel or add a subscription?

Mohsen Akhavan 791 Reputation points
2024-08-14T20:24:57.9833333+00:00

A regular user has access to some resource groups under a subscription. If users search "Subscription" in the Azure portal, they can see related subscriptions, and also they can "Cancel" or "Add" subscriptions.

I'm unsure if the user requests a "Cancel" subscription; does it work? But I'm looking for a way to disable it, or the user can not see the subscription.

Regarding the "Add" subscription, the user tried creating a free subscription with the company email address and personal information. Still, the created subscription shows under the company tenant, and we have a new billing profile.

For your information, the user has no access or hasn't been assigned a role in the IAM subscription.

User's image

User's image

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
868 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 15,225 Reputation points
    2024-08-14T22:10:55.2+00:00

    "Cancel subscription" is controlled by RBAC permissions. Users without proper roles shouldn't be able to cancel, even if they can see the option.

    See: https://video2.skills-academy.com/en-us/azure/role-based-access-control/built-in-roles

    You can also use an Azure Policy or a lock:

    See: https://video2.skills-academy.com/en-us/azure/governance/policy/concepts/effect-deny-action

    You can create also policies that prevent users from adding new subscriptions to the tenant.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


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.