A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
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.
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