As the subject says. We would like to offer admins an option to subscribe a Jira/Confluence group to a regular email from within Jira/Confluence. Given that Atlassian does not offer email service from within REST API, we need to get all group members and their emails.
This is the current state of API:
Jira:
GET /rest/api/3/group/member Returns a paginated list of all users in a group.
Permissions required: Administer Jira global permission.
Connect app scope required: ADMIN
Confluence:
GET /wiki/rest/api/group/member Returns the users that are members of a group.
Permissions required: Permission to access the Confluence site (‘Can use’ global permission). Connect app scope required: READ
So in Confluence we could do it easily. In Jira, however, we would have to get all users list, and then for each user ask if it is member of this group, as those endpoints are accessible with READ scope. So we can get the same result with lesser privileges, as we don’t ask for ADMIN scope for our app.
Is there a better way? Or do I need to file a bug so that group members endpoint scope is changed?
@remie
I don’t agree with it. I think customers will be surprised when see that your application requires ADMIN rights just for looking at group members. It’s a little suspicious, isn’t it?
We have had 0, zero, zilch, nada, nothing, none, no customer request whatsoever with regard to the permissions our apps are requesting. It is possible that we are missing out on customers (you don’t know what you don’t know) because of our scopes, but given the number of Fortune500 companies that are using our Cloud apps I highly doubt it.
End of the day, legal, security & procurement departments can complain whatever they want, but if business wants it, the sale will happen. But that is just my experience, perhaps there are others in the Marketplace that do have had customers churn over their scopes.
Nah, we don’t use any of the groups API’s, but we kind of default to ADMIN scope for all our apps because it is a bigger hassle to realise you have to upgrade to a higher privilege scope later on than it is to just ask all permissions by default.
The reason for this is because Atlassian, in all her wisdom, has decided that A) a change in scope requires explicit manual updates from instance administrator and B) they require us to keep old versions active for those that never update.
Given the lack of care from customers with regard to the scopes we’re using, we figured it’s easier to just immediately ask all scopes