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

Feature: Add support for automatic assignment policy #1449

Open
pckls opened this issue Aug 2, 2024 · 0 comments
Open

Feature: Add support for automatic assignment policy #1449

pckls opened this issue Aug 2, 2024 · 0 comments

Comments

@pckls
Copy link

pckls commented Aug 2, 2024

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

There is no resource in this provider to configure automatic assignment policy for an access package.

New or Affected Resource(s)

  • azuread_access_package_auto_assignment_policy

Potential Terraform Configuration

resource "azuread_access_package_catalog" "example" {
  display_name = "example-catalog"
  description  = "Example catalog"
}

resource "azuread_access_package" "example" {
  catalog_id   = azuread_access_package_catalog.example.id
  display_name = "access-package"
  description  = "Access Package"
}

resource "azuread_access_package_auto_assignment_policy" "example" {
  access_package_id                          = azuread_access_package.example.id
  display_name                               = "auto-assignment-policy"
  description                                = "My auto assignment policy"
  automatically_create_assignments           = true
  automatically_remove_assignments           = true
  duration_before_automatic_removal_in_days  = 7
  rule_syntax                                = "{user.Department -eq \"Sales\"}"
}

References

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

2 participants