Good morning.
I am trying to add automation that tests an issue reporter's membership in a customer organization.
I'm using the OrganizationService is com.atlassian.servicedesk.api.organization and the getById method, where I pass in the reporter's ApplicationUser object and specific customer organization IDs I wish to test against.
I'm getting a response of 'sd.customer.organisation.error.user.no.view.permission : 'You do not have permission to view this organization'
This response makes sense to me, the reporter I am passing in is not yet trusted. That is what I am trying to determine.
How can I, as a trusted automation/administrator, query the customer organization membership of the reporter?