Hello everyone,
I’m trying to integrate ArcGIS Enterprise Portal with a custom GPT in ChatGPT so it can call our Portal REST API and answer spatial and operational questions using secured content.
I’ve set up an OAuth 2.0 app in our Portal with the proper redirect URIs for the GPT action, client ID/secret, and authorization_code flow. The connection appears to succeed — whoAmI returns JSON — but the account info is wrong. It’s returning a username/email that do not exist in our Portal instead of the intended service account (chatgpt@...) that should be authenticated.
We’re running Portal with SSO via Microsoft Entra (Azure AD), and I suspect cached or auto-selected SSO sessions may be bypassing the intended account. Even after using Incognito, the GPT doesn’t prompt for login, and the returned identity isn’t correct.
Has anyone successfully connected a third-party app like ChatGPT to Enterprise Portal with SSO and OAuth2, where the user account returned is the actual signed-in Portal account? Any tips on forcing the correct login or ensuring the returned whoAmI matches the expected SSO identity?