Thanks for taking the time to reply @lgoodhewcook
I was unsure about interacting with non-JSD API’s directly when dealing with customers, but it does appear that the standard Jira PermissionManager returns the correct result for me when run in the customer context, brilliant!
Thanks for the information regarding the experimental APIs and for logging an improvement for checking customer permissions. We try to be good plugin developers and avoid experimental API’s when we can, so having those cleaned up would be lovely.
The customer context is something that still causes confusion to plugin developers, this probably affects us more than most because we do a lot of interaction with JSD. To my knowledge, the behaviour of the customer context is not publicly documented anywhere, it took us months to even realise that this was a thing, I know that it is an internal implementation detail of JSD but it is rather confusing to plugin developers if you do not know that this special context exists. Is there any possibility of getting some better documentation for this?
To my knowledge, all portal interaction gets routed through the customer context, meaning that all Jira users are treated as customers when using the portal. Is that a correct assumption?
I have a very specific question relating to mail handlers which you might be able to get me an answer for. What context should a mail handler be executed in? JSD does not currently have its source code available which means that this is impossible for me to find out myself.
We develop a custom mail handler for Jira, this mail handler creates/comments/updates issues in JSD projects. Currently it runs outside of the customer context, meaning that customer permissions don’t quite work correctly in our product at the moment.
Should all mail handlers be executed in the customer context if the project is a JSD project? Is that safe and the correct thing to do? It would make my life a lot easier if I can just switch contexts and then trust Jira to handle all the permissions for customers after that.