okta / okta-sdk-golang

A Golang SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
https://github.com/okta/okta-sdk-golang
Other
181 stars 145 forks source link

Okta sdk doesn't support updating ProgressiveProfilingAction as part of ProfileEnrollmentPolicyRuleAction #470

Open pmahindrakar-oss opened 5 months ago

pmahindrakar-oss commented 5 months ago

Describe the bug?

The Okta server supports adding ProgressiveProfilingAction which allows to create a profile enrollment policy rule where additional info if absent for the user , then he will be prompted to enter it when logging in.

We had okta UI made a change to create profile enrollement policy and enabled ProgressiveProfilingAction checkbox. The get call retrieves it but when we call an update call to the rule with the payload retrieved from get call then it fails with the following error

Error: the API returned an error: Api validation failed: actions.profileEnrollment.progressiveProfilingAction. Causes: errorSummary: actions.profileEnrollment.progressiveProfilingAction: The rule could not be created or updated because the progressiveProfilingAction field in the requirement contained an invalid value or was incorrectly formatted, errorSummary: actions.profileEnrollment.uiSchemaId: The rule could not be created or updated because the uiSchemaId field in the action contained an invalid value or was incorrectly formatted

What is expected to happen?

Expected the API to succeed

What is the actual behavior?

Failed to update

Reproduction Steps?

Additional Information?

No response

Golang Version

go version go1.21.8 darwin/arm64

SDK Version

okta-sdk-golang/v2 v2.12.1

Even though this sdk is old, but the latest also doesn't have this property

OS version

No response

github-actions[bot] commented 4 months ago

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] commented 2 months ago

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

github-actions[bot] commented 4 days ago

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.