Search code examples
google-apps-scriptgoogle-appsgoogle-workspace

How can I programatically reset the sign in cookies for a user in G Suite?


It's possible to do it manually in the user management UI but I can't find anything in the user management API to do it programatically.

https://developers.google.com/admin-sdk/directory/v1/reference/users


Solution

  • I found a workaround. You can suspend a user and then immediately restore their account. This has the side effect of invalidating their cookies.