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

Add support for different User Types to the okta_user resource #2002

Open
jbaker10 opened this issue Jun 3, 2024 · 1 comment
Open

Add support for different User Types to the okta_user resource #2002

jbaker10 opened this issue Jun 3, 2024 · 1 comment
Labels
enhancement Asking for new behavior or feature triaged Triaged into internal Jira

Comments

@jbaker10
Copy link

jbaker10 commented Jun 3, 2024

Community Note

  • 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 = "[email protected]"
  email = "[email protected]"
  user_type = "Employee"
  type = {
    id = "oty50ejpg8RRdlrsz7v5"
  }
}

References

@jbaker10 jbaker10 added the enhancement Asking for new behavior or feature label Jun 3, 2024
@duytiennguyen-okta
Copy link
Contributor

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-735622

@duytiennguyen-okta duytiennguyen-okta added the triaged Triaged into internal Jira label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Asking for new behavior or feature triaged Triaged into internal Jira
Projects
None yet
Development

No branches or pull requests

2 participants