How to delete User Property Services when User deletes G-Suite Add-on

雨燕双飞 提交于 2021-02-11 17:05:41

问题


I'm developing a G-Suite add-on that is storing user auth tokens for an external API within User Property Services as Google recommends. I'm planning to implement the OAuth2 Service as well for publication purposes.

My assumption would be that when a user deletes an add-on, the property services associated with that user (and thereby their auth tokens) are deleted as well. However, I haven't found any documentation that says Google deletes a users property services storage when a user uninstalls an add-on. In fact, I have found numerous instances where this isn't occurring for other add-ons, and uninstalling my own unpublished add-on and reinstalling from manifest has shown to still have my auth token stored.

I understand this is a duplicate of Google app script,gmail addon remove user properties while uninstall addon, but that post did not provide any solution for this issue.

I'm curious how other developers are handling this issue, as I can't imagine current add-ons would simply like their users' OAuth tokens floating around in the Google cloud even when they uninstall their add-on. Does Google provide a solution for this, or perhaps delete the property services over some length of unused time?


回答1:


As they do with other services, user data could take some time to be completely being removed after the user requested that (i.e. by means of deleting their account) from the their servers.

Anyway, you could add something to your add-on to remove the user data upon user request while they still have installed the add-on in order to prenvent that the data be there if your add-on users re-install it.



来源:https://stackoverflow.com/questions/63351124/how-to-delete-user-property-services-when-user-deletes-g-suite-add-on

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