I have a GA account, with defined properties and views. Now, I gave viewing rights for a few users to a specific view. How can I construct/get programmatically a direct URL
I have a few points to add to Matt and Adam's answers:
https://analytics.google.com/analytics/web/#/report-home/a[account id]w[internal web property id]p[view id]
Important: a user has to have at least READ_AND_ANALYZE
permissions for the web property in order to access its default view. internalWebPropertyId
is a resource in the web properties collection and can be obtained through various GA Management API calls. For example, I extracted this value from the response object after creating a new web property using insert call.