terraform-provider-azuread
terraform-provider-azuread copied to clipboard
Change user_type in azuread_user resource
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 should be possible to create member or guest users, both homed and invited in a given tenant.
New or Affected Resource(s)
- azuread_user
Potential Terraform Configuration
resource "azuread_user" "example" {
user_principal_name = "[email protected]"
display_name = "J. Doe"
mail_nickname = "jdoe"
password = "SecretP@sswd99!"
user_type = "guest"
}
Original message
Hi,
How can we change user_type of an azuread_user resource from Member to Guest using terraform
Hi @miltlino, this is unfortunately not currently possible, however in the next major version of the provider this will be addressed. I've updated your issue to use our provided issue template, please kindly use the templates provided when opening an issue as this helps us gather the information we need.
Additionally, if you have any usage questions please consult our community resources which are detailed in the README. Thanks!
@manicminer why was this removed from 3.0.0 again? It's still an issue that it can't be set.
Use case: Hosted avd enviorment - we create users for customers in tenant as b2b users isn't supportet yet in AVD. To make it clear it's an "external" user homed in this tenant we wan't to set user_type = guest