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

access_package_assignment_policy doesn't support duration_in_hours #1148

Open
tjrobinson opened this issue Jul 19, 2023 · 1 comment
Open

Comments

@tjrobinson
Copy link

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

The access_package_assignment_policy resource doesn't support duration_in_hours, only duration_in_days (how many days this assignment is valid for).

It is supported through the Azure/Entra portal though:

image

This is unfortunately a limitation in the Graph API itself, see References below, so I don't believe it's possible to implement this feature yet but wanted to raise it so others are aware and to get it onto the backlog.

Please upvote this Microsoft Feedback request to get it added to the Graph API.

New or Affected Resource(s)

  • access_package_assignment_policy

Potential Terraform Configuration

resource "azuread_access_package_assignment_policy" "test" {
  access_package_id = azuread_access_package.test.id
  display_name      = "assignment-policy"
  description       = "My assignment policy"
  duration_in_hours = 12

  ...
}

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