# ログインユーザーの組織を取得したい！

**URL:** <https://community.cybozu.dev/t/topic/785>\
**Category:** kintone 開発相談\
**Created:** [2017 年 7 月 3 日午前 2:28 UTC](https://community.cybozu.dev/t/topic/785 "2017-07-03T02:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Legacy\_Account1655](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@Legacy\_Account1655](https://community.cybozu.dev/u/Legacy_Account1655)\
**Post date:** [2017 年 7 月 3 日午前 2:28 UTC](https://community.cybozu.dev/t/topic/785/1 "2017-07-03T02:28:45Z")

</div>

ログインユーザーの組織を取得する方法はありますか？

---

<div class="post-metadata">

**Author:** ![Legacy\_Account1895](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@Legacy\_Account1895](https://community.cybozu.dev/u/Legacy_Account1895)\
**Post date:** [2017 年 7 月 3 日午前 3:41 UTC](https://community.cybozu.dev/t/topic/785/2 "2017-07-03T03:41:47Z")

</div>

まずログインしているユーザのusercodeを取得して、その値を

ユーザーの所属組織エクスポート APIに入れてリクエストすれば取得できると思います。

[https://developer.cybozu.io/hc/ja/articles/201942024](https://developer.cybozu.io/hc/ja/articles/201942024)

[https://developer.cybozu.io/hc/ja/articles/202124774](https://developer.cybozu.io/hc/ja/articles/202124774)
