You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Okta allows the creation of multiple different user types, not associated with the userType attribute typically used to delineate things like Employee vs Contingent Worker, but rather completely separate user types that have different profile schemas associated (Documentation here https://developer.okta.com/docs/reference/api/user-types/). Per the API docs, Okta API supports the ability to create new users and specify the user type by adding the "type" map to the request body. The terraform provider does not offer such support and throws the error Unexpected attribute: An attribute named "type" is not expected here when defining type on the okta_user resource.
An example use case is the creation of Service Accounts with a different user type and schema.
New or Affected Resource(s)
okta_user
Potential Terraform Configuration
resource"okta_user""jane_doe" {
first_name="Jane"last_name="Doe"login="jane.doe@acme.com"email="jane.doe@acme.com"user_type="Employee"type={
id ="oty50ejpg8RRdlrsz7v5"
}
}
Community Note
Description
Okta allows the creation of multiple different user types, not associated with the
userType
attribute typically used to delineate things like Employee vs Contingent Worker, but rather completely separate user types that have different profile schemas associated (Documentation here https://developer.okta.com/docs/reference/api/user-types/). Per the API docs, Okta API supports the ability to create new users and specify the user type by adding the"type"
map to the request body. The terraform provider does not offer such support and throws the errorUnexpected attribute: An attribute named "type" is not expected here
when definingtype
on theokta_user
resource.An example use case is the creation of Service Accounts with a different user type and schema.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: