what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

梦想的初衷 提交于 2020-11-29 21:27:22

问题


I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to automate the same using google APIs. I tried to explore users, tokens, etc APIs but could not find an option. Appreciate if you can suggest an option to achieve this functionality through API. Providing more details for better understanding: To get the list of users, I am using Directory API : https://developers.google.com/admin-sdk/directory/v1/reference/users/list?apix_params=%7B%22customer%22%3A%22my_customer%22%7D and to get list of apps installed by the user I am using Directory API : https://developers.google.com/admin-sdk/directory/v1/reference/tokens/list?apix_params=%7B%22userKey%22%3A%22test%40test.net%22%7D Now I would like to block a specific app for specific user using Directory API. Similar feature in Microsoft: https://docs.microsoft.com/en-us/graph/api/resources/conditionalaccesspolicy?view=graph-rest-1.0

来源:https://stackoverflow.com/questions/64865256/what-are-the-google-apis-to-manage-policies-to-block-restrict-add-ins-in-googl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!