feat: add app user-profile schema tools - #73
Open
mjdavidson wants to merge 1 commit into
Open
Conversation
There was no way to define custom attributes on an application's user profile
(the Profile Editor 'Add Attribute' step), so SSO/provisioning flows that map a
SAML attribute statement to a real profile field (e.g. user.employeeNumber)
could not be set up through the server — only read-only inspection existed.
Add get_app_user_schema (typed GET) and add_app_user_schema_attribute, which
posts a custom property to /api/v1/meta/schemas/apps/{id}/default. The schemas
endpoint has no typed SDK write wrapper, so the update goes through the request
executor; it is a partial update that leaves existing custom properties intact.
These use the Schemas API scopes (okta.schemas.read / okta.schemas.manage), with
registry entries and README updates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was no way to add custom attributes to an application's user-profile schema (the Profile Editor "Add Attribute" step) — only read-only inspection. Adds
get_app_user_schemaandadd_app_user_schema_attribute; the write posts to/api/v1/meta/schemas/apps/{id}/defaultthrough the request executor (the schemas endpoint has no typed SDK wrapper) and is a partial update that leaves existing custom properties intact. Uses the Schemas API scopes (okta.schemas.read/okta.schemas.manage).\n\nTests:tests/test_app_user_schema.py.