How do I update the JWT sub claim to accountId?

From this ticket, I see the JWT sub claim should be replaced by accountId from key.
https://ecosystem.atlassian.net/browse/AC-2409

However, in my add-on, I am still receiving the “key” as my sub claim. How can I get the accountId as sub claim? My application is based on atlassian connect spring boot.
https://bitbucket.org/atlassian/atlassian-connect-spring-boot/src

Hi @jeffrey,

Your app would need to opt-in to GDPR to receive the accountId’s. More information here: Are you ready for the GDPR API deprecation? - Atlassian Developer Blog

Cheers,
Anne

1 Like