-
Notifications
You must be signed in to change notification settings - Fork 162
Description
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 me too comments, 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.
Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it.
Python Version & Okta SDK Version(s)
Python 3.12.5
okta 3.0.0
Affected Class/Method(s)
okta.models.AppUser is where I spotted it ,while running assign_user_to_application
Customer Information
Organization Name:
Paid Customer: yes
Code Snippet
okta_usr, response, error = await okta_client.get_user(email)
_, response, error = await okta_client.assign_user_to_application(
settings.OKTA_APP_ID, {'id': okta_usr.id}
)Debug Output / Traceback
6 validation errors for ApplicationUsersApi.assign_user_to_application
2.created
Field required [type=missing, input_value={'id': '...'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
2.lastUpdated
Field required [type=missing, input_value={'id': '...'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
2.scope
Field required [type=missing, input_value={'id': '...'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
2.status
Field required [type=missing, input_value={'id': '....'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
2.statusChanged
Field required [type=missing, input_value={'id': '...'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
2._links
Field required [type=missing, input_value={'id': '...'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Expected Behavior
The user should be assigned to the application
Actual Behavior
The validation eror report happens
Steps to reproduce
- Run the code snippet provided above.
References
No response