I'm running into problems with most attempts to use the p2 component JSD API.
If a Portal User is registered and in the Service Desk Customers role, I would expect the following to return an actual value:
It returns a null with a left() error of:
On the outside chance, I tried asserting that portalUser via JiraAuthenticationContext with identical results.
Using the alternate non-deprecated method search by ID:
I even tried this where the current (logged in user) and the 'target' user was the same user, an Agent in the target project, and still get null.
I can't see what could be done differently, if I'm missing something please point it out
At the very least, the error messages about lacking permissions really need more detail adding given the 'complex' nature of how that decision could be reached.