# 定期获取用户字段的数据库信息而无需登出

**URL:** <https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2025年四月16日 13:45 UTC](https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097 "2025-04-16T13:45:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Dre\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dre_m/32/499375_2.png) [@Dre\_M](https://meta.discourse.org/u/Dre_M)\
**Post date:** [2025年四月16日 13:45 UTC](https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097/1 "2025-04-16T13:45:36Z")

</div>

您好！

我们已通过 REST API 成功将会员资格和其他账户信息从数据库导入“自定义字段”，但目前这要求每位用户注销然后重新登录（使用我们的 SSO）后才能获取数据。

这显然不是一个有效的解决方案——我们希望设置一些基于会员资格的权限，因此我们需要这些信息至少每周自动更新一次，而且我们不能每周强制所有用户注销。

是否有办法定期轮询和更新此类信息？我确信文档中一定有相关说明，但我们找不到！

谢谢！

---

_[View the full topic](https://meta.discourse.org/t/regularly-fetching-database-info-for-user-fields-without-logout/362097)._
