Page MenuHomePhabricator

Use "rest/api/3/myself" to retrieve JIRA profile details, not "rest/auth/1/session"
ClosedPublic

Authored by epriestley on Apr 25 2020, 9:00 PM.
Tags
None
Referenced Files
F22700270: D21170.diff
Fri, Oct 2, 10:54 PM
Unknown Object (File)
Aug 27 2026, 6:28 AM
Unknown Object (File)
Jun 23 2026, 9:46 AM
Unknown Object (File)
Jun 22 2026, 3:01 PM
Unknown Object (File)
Jun 22 2026, 3:01 PM
Unknown Object (File)
Jun 22 2026, 3:00 PM
Unknown Object (File)
Apr 17 2026, 1:16 AM
Unknown Object (File)
Mar 1 2026, 5:55 PM
Subscribers
None

Details

Summary

Ref T13493. At time of writing, the old API method no longer functions: 1/session does not return an accountId but all calls now require one.

Use the modern 3/myself API instead. The datastructure returned by 2/user (older appraoch) and 3/myself (newer approach) is more or less the same, as far as I can tell.

Test Plan

Linked an account against modern-at-time-of-writing Atlassian-hosted JIRA.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable