# נקודת הקצה API users/by-external/ נכשלת עם כותרות הרשאה, עובדת ללא

**URL:** <https://meta.discourse.org/t/api-endpoint-users-by-external-failing-with-authorization-headers-works-without/259885>\
**Category:** Bug\
**Tags:** rest-api\
**Created:** [29 במרץ,‏ 2023,‏ 5:57pm UTC](https://meta.discourse.org/t/api-endpoint-users-by-external-failing-with-authorization-headers-works-without/259885 "2023-03-29T17:57:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [29 במרץ,‏ 2023,‏ 10:50pm UTC](https://meta.discourse.org/t/api-endpoint-users-by-external-failing-with-authorization-headers-works-without/259885/10 "2023-03-29T22:50:15Z")

</div>

After working through this with @Tim_Scaffidi we realized that the user being passed in for the `Api-Username` had been automatically deactived by the `SiteSetting.invalidate_inactive_admin_email_after_days`. There likely is a bug related to this setting where api calls made by a user are not updating that user’s “login” activity.

---

_[View the full topic](https://meta.discourse.org/t/api-endpoint-users-by-external-failing-with-authorization-headers-works-without/259885)._
