问题
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