简体   繁体   English

如何以编程方式为G Suite中的用户重置登录Cookie?

[英]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. 可以在用户管理UI中手动执行此操作,但是我在用户管理API中找不到任何以编程方式执行的操作。

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

I found a workaround. 我找到了解决方法。 You can suspend a user and then immediately restore their account. 您可以暂停用户,然后立即恢复其帐户。 This has the side effect of invalidating their cookies. 这具有使其cookie无效的副作用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建 g-suite 插件或与他人共享我编写的 Appscripts? - How can I create g-suite add-ons or share Appscripts that I've written with others? 如何为在 Apps 脚本上运行的 G Suite 插件获取 OAuth 刷新令牌? - How can I obtain an OAuth refresh token for a G Suite Add-on running on Apps Script? 有没有办法将g套件服务合并到php中? - Is there a way I can incorporate g suite services into php? G-Suite 用户访问 G-Suite 可信应用脚本时,如何避免脚本授权提示? - How to avoid script authorization prompt when G-Suite user is accessing G-Suite trusted app script? 如何使用 G-Suite 开发人员中心创建带有“来自电子表格”事件源的独立 onEdit(e) 触发器? - How can I create a stand-alone onEdit(e) trigger with a 'from Spreadsheet' event source using G-Suite Developer Hub? G Suite:删除 Chromebook 中的本地用户个人资料 - G Suite: Erase local user Profile in Chromebook 用户删除 G-Suite 插件时如何删除用户财产服务 - How to delete User Property Services when User deletes G-Suite Add-on 是否可以更改文件夹的权限并使用Apps Script(G-Suite)以编程方式移动它? - Can I change permission of a folder and move it programmatically using Apps Script (G-Suite)? 从G Suite管理员SDK删除用户帐户的脚本 - Script to delete a user account from G Suite Admin SDK 获取G Suite中给定用户列表的用户活动报告 - Getting User Activity Reports for a given list of users in G Suite
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM