# Size of a group through okta-sdk-nodejs

**URL:** <https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887>\
**Category:** Questions\
**Created:** [July 21, 2023, 8:33pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887 "2023-07-21T20:33:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingu](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pingu](https://devforum.okta.com/u/pingu)\
**Post date:** [July 21, 2023, 8:33pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887/1 "2023-07-21T20:33:01Z")

</div>

Is there a way to get the number of users in a group through the sdk?  
I can see a way through API, [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/Is-there-an-API-that-returns-the-number-of-users-in-a-group?language=en_US).

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [July 21, 2023, 9:51pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887/2 "2023-07-21T21:51:33Z")

</div>

Hello,

Most of the Management SDK allow you to include query params for the API endpoints. For example,

> <https://github.com/okta/okta-sdk-golang/blob/master/okta/group.go#L84>

> <https://github.com/okta/okta-sdk-golang/blob/master/okta/query/query.go#L31>

Which SDK were you inquiring about?

Thank You,

---

<div class="post-metadata">

**Author:** ![pingu](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pingu](https://devforum.okta.com/u/pingu)\
**Post date:** [July 21, 2023, 10:43pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887/3 "2023-07-21T22:43:57Z")

</div>

I was trying to find the number of users in a group when I look for it with the group ID. Something like `client.getGroup('abcde')`  
This gives me information about the group. I was wondering if there is a way I can get just the size without having to get the users and then check the size.

---

<div class="post-metadata">

**Author:** ![pingu](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pingu](https://devforum.okta.com/u/pingu)\
**Post date:** [July 24, 2023, 5:34pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887/5 "2023-07-24T17:34:05Z")

</div>

Found it: [Okta API wrapper for Node.js Index](https://developer.okta.com/okta-sdk-nodejs/jsdocs/#toc29)

### Call other API Endpoints

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [July 25, 2023, 5:34pm UTC](https://devforum.okta.com/t/size-of-a-group-through-okta-sdk-nodejs/24887/6 "2023-07-25T17:34:57Z")

</div>

Closed on July 25, 2023, 5:34pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
