Okta Slack Provisioning Fails with Username Taken Error
Last Updated:
Overview
Okta fails to provision a Slack user when an active user, deactivated user, channel, or group in Slack already uses the username. Resolve this issue by verifying the username uniqueness in Slack, updating the username in Okta, or correcting an external ID mismatch. The following error appears during provisioning:
Error while trying to push profile update for <user>: Errors during execution: Error executing pushUserProfile: Conflict. Errors reported by the connector : {"Errors":{"description":"username_taken (user=<user>)","code":409}}. Error Code: null
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Provisioning
- Slack
Cause
When Okta provisions a new user via System for Cross-domain Identity Management (SCIM), usernames must remain unique and distinct from channel names and group names. This error is generated because an active user, a deactivated user, or a channel name in Slack already uses the username. Review the Slack SCIM API Errors documentation for more details.
Solution
Follow the steps or video below to resolve this issue.
What steps resolve the username taken error?
Verify the username uniqueness in Slack, update the username in Okta, and retry the provisioning task.
- Verify if an active or deactivated user in Slack already uses the username. The username must remain unique and distinct from channel names.
- Change the username in Okta and retry the task.
- Contact Slack support for further assistance if the issue persists.
What steps correct an external ID mismatch?
If the external ID of the user in Slack does not match the external ID value stored in Okta, correct the mismatch by temporarily disabling the deactivation feature and recreating the user assignment.
- Temporarily disable the Deactivate Users feature in the Slack application provisioning settings.
- Remove the user from the Slack application assignment.
- Assign the user to Slack using an individual assignment.
- Convert the assignment back to a group assignment after the profile syncs and the external ID corrects.
- Re-enable the Deactivate Users feature.
