terraform-provider-azuread icon indicating copy to clipboard operation
terraform-provider-azuread copied to clipboard

Change user_type in azuread_user resource

Open miltlino opened this issue 3 years ago • 2 comments

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

miltlino avatar Dec 02 '22 15:12 miltlino

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 avatar Jan 18 '23 20:01 manicminer

@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

endreigesund avatar Feb 11 '25 11:02 endreigesund