Heh, I actually started writing an answer some time ago but got distracted and never got back to it.
So unfortunately, the only way is the REST API, and all permission checking endpoints assume you want to check permissions of the currently logged-in user. I’m afraid you would need to add the ACT_AS_USER scope to your app.
If that’s not an option, I would suggest creating a feature request in ACJIRA for an endpoint that would allow you to specify a user to check permissions for.
I will raise an issue as it seems to be a hole not letting ADMIN check the permission of a user.
But, is there a request already to support conditions and expressions in webhooks? That could help us too.
On the side note, can I use expressions as part of conditions as part of context parameters ?
I tried the following (as part of a web panel URL), but it always returns “false”, even if the project is a classic one (not next-gen):
it seems to be a hole not letting ADMIN check the permission of a user.
Yes, I agree. I can’t see any reason why admins shouldn’t be allowed to check permissions of other users, especially that it’s already available in the UI.
can I use expressions as part of conditions as part of context parameters
It should be possible. When it comes to syntax, it should be the following in this case (the expression itself is not in any quotes, like other arguments in other inline conditions):