Hi @Gundalf,
I will answer this question by posting my 4-years-old feature request :-) It shows what API endpoints I am using for LeanIX Automation Platform, and why each of the 3 options is not perfect. If your requirements are a bit lower than mine, one of the options might work for you.
Maybe @Kostas-LeanIX knows if there’s already something better in the pipes?
There we go:
—-
As discussed with Felix recently, I am creating a feature request for a lean MTM API endpoint for users and permissions.
As a LeanIX partner who is developing automation solutions for LeanIX, I need a fast way to reload all users and permissions when reacting to a Webhook event. "Fast" means "faster than the maximum Webhook processing time of 50 seconds, for *any* customer workspace, no matter how many users they have".
With the current set of endpoints in the MTM API, I face the following problems:
- The "/workspaces/{id}/permissions" endpoint returns huge amounts of data and is virtually unusable for workspaces with many users
- The "/workspaces/{id}/users" endpoint is lean, but it does not provide workspace-specific data, such as the user's role (ADMIN, MEMBER, VIEWER)
- The GraphQL MTM endpoint "/services/mtm/v1/graphql" is awesome (really!), but it's not "officially" available to be used by customers and partners, so I am facing a long-term risk if I use it to build my solutions.
My preferred solution would be to get your permission to officially use the GraphQL MTM endpoint within my partner solution. I already tested it and it works just perfectly.
—-