# Not able to differentiate host and participant

**URL:** <https://devforum.zoom.us/t/not-able-to-differentiate-host-and-participant/119225>\
**Category:** Video SDK\
**Tags:** video-sdk, sdk\
**Created:** [October 16, 2024, 4:25am UTC](https://devforum.zoom.us/t/not-able-to-differentiate-host-and-participant/119225 "2024-10-16T04:25:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharatngrid](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bharatngrid/32/50195_2.png) [@bharatngrid](https://devforum.zoom.us/u/bharatngrid)\
**Post date:** [October 16, 2024, 4:25am UTC](https://devforum.zoom.us/t/not-able-to-differentiate-host-and-participant/119225/1 "2024-10-16T04:25:24Z")

</div>

I am working with Zoom video SDK in my web application, Where i am trying to differentiate host and participant in it. For that as per documentation i am trying to pass role 0 and 1. Where 1 for host and 0 for participant. When i pass role=0 that time i am getting flag isHost true in zoom session, For host and participant both. Here i attached the photo of that session log. here is my dev configuration

```auto
export const devConfig = {
  sdkKey: '',
  sdkSecret: '',
  webEndpoint: 'zoom.us', // zfg use www.zoomgov.com
  topic: '',
  name: "",
  meetingNumber:700800900,
  password: '',
  signature: '',
  sessionKey: '',
  userIdentity: '',
  // The user role. 1 to specify host or co-host. 0 to specify participant, Participants can join before the host. The session is started when the first user joins. Be sure to use a number type.
  role: 1
};

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 16, 2024, 5:08am UTC](https://devforum.zoom.us/t/not-able-to-differentiate-host-and-participant/119225/2 "2024-10-16T05:08:52Z")

</div>

@bharatngrid you need to check your signature as well. there is a “role” parameter which you need to specify in the signature
