Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Authorization Policy resource #1183

Open
F21 opened this issue Sep 7, 2023 · 1 comment
Open

Implement Authorization Policy resource #1183

F21 opened this issue Sep 7, 2023 · 1 comment

Comments

@F21
Copy link

F21 commented Sep 7, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It would be nice if is a resource to manage authorization policy for an Azure AD tenant. This would allow the configuration of Azure AD's authorization settings.

New or Affected Resource(s)

  • azuread_authorization_policy

Potential Terraform Configuration

resource "azuread_authorization_policy" "my_tenant" {
  allow_email_verified_users_to_join_organization = true
  allow_invites_from = "everyone"
  allow_user_consent_for_risky_apps = true
  allowed_to_sign_up_email_based_subscriptions = true
  allowed_to_use_sspr = true
  block_msol_powershell = true
  default_user_role_permissions {
    allowed_to_create_apps = true
    allowed_to_create_security_groups = true
    allowed_to_create_tenants = true
    permission_grant_policies_assigned = []
    allowed_to_read_bitlocker_keys_for_owned_devices = true
    allowed_to_read_other_users = true
  }
  description = "some description"
  display_name = "some policy"
  guest_user_role_id = "a0b1b346-4d3e-4e8b-98f8-753987be4970"
}

References

https://learn.microsoft.com/en-us/graph/api/resources/authorizationpolicy?view=graph-rest-1.0

@steve-kent1
Copy link

steve-kent1 commented Jan 8, 2024

Yes, this is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants