Set authSetting when creating users via the Tableau REST API#28
Set authSetting when creating users via the Tableau REST API#28aberoham wants to merge 1 commit intoConductorOne:mainfrom
Conversation
AddUserToSite sets idpConfigurationId but never includes authSetting in the payload. The Tableau REST API requires authSetting to be explicit — without it, users default to "Tableau with MFA" regardless of IdP config. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
WalkthroughThe changes add explicit authentication setting configuration for user provisioning. When creating users, the code now populates the authentication method field based on IDP configuration presence—"SAML" when an IDP is provided, "TableauIDWithMFA" otherwise. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Failure to add the new IP will result in interrupted reviews. Comment |
Fixes #27.
AddUserToSitesetsidpConfigurationIdbut never includesauthSettingin the API payload. The Tableau REST API requiresauthSettingto be explicitly set — without it, every user defaults to "Tableau with MFA" regardless of the IdP configuration provided.CreateAccountnow setsAuthSettingto"SAML"when an IdP is selected,"TableauIDWithMFA"otherwise.AddUserToSitenow passesAuthSettingthrough to the API payload when set, rather than silently dropping it.Tested against the Tableau Cloud REST API (3.17); both
SAMLandTableauIDWithMFAare correctly reflected on the created user.Summary by CodeRabbit