# API: is\_group\_owner returning null

**URL:** <https://meta.discourse.org/t/api-is-group-owner-returning-null/161262>\
**Category:** Bug\
**Created:** [August 18, 2020, 11:36am UTC](https://meta.discourse.org/t/api-is-group-owner-returning-null/161262 "2020-08-18T11:36:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessicah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jessicah/32/102653_2.png) [@jessicah](https://meta.discourse.org/u/jessicah)\
**Post date:** [August 18, 2020, 11:36am UTC](https://meta.discourse.org/t/api-is-group-owner-returning-null/161262/1 "2020-08-18T11:36:52Z")

</div>

Have just recently upgraded to 2.6.0 beta1, can’t recall which version of 2.5.0 I was on previously, and now the API call to lookup a group is returning `null` for `is_group_owner`, instead of `true`/`false`. I’ve been trying to find a commit in GitHub that might explain the change in behaviour, but haven’t been able to identify anything.

Is this a bug, or do 3rd party API libraries need to get updated to support a maybe boolean return type?

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [August 18, 2020, 4:31pm UTC](https://meta.discourse.org/t/api-is-group-owner-returning-null/161262/6 "2020-08-18T16:31:16Z")

</div>

HI @jessicah,

it was indeed slightly awkward since the fix. I just pushed this commit which will follow more how we do at other places:

[https://github.com/discourse/discourse/pull/10466](https://github.com/discourse/discourse/pull/10466)

Basically if you are group\_owner it will return `true` if you are not, the field won’t be present.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [December 8, 2020, 9:17pm UTC](https://meta.discourse.org/t/api-is-group-owner-returning-null/161262/7 "2020-12-08T21:17:48Z")

</div>


