Hello,
I'm setting up a custom pipeline in Bitbucket and need to verify whether the user who triggers the pipeline has admin permissions. I attempted to check permissions with an API call to:
GET https://api.bitbucket.org/2.0/repositories/<span>$BITBUCKET_REPO_OWNER</span>/<span>$BITBUCKET_REPO_SLUG</span>/permissions-config/users/<span>$BITBUCKET_STEP_TRIGGERER_UUID</span>
However, this returns no data since users have been added to the repository as part of a group, not individually. How can I check if the pipeline triggerer is an admin, especially when permissions are assigned via groups?
I need to resolve this promptly to proceed with pipeline configuration. Any assistance would be greatly appreciated.
Thanks!