# Using addParticipantSpotlight and removeParticipantSpotlights

**URL:** <https://devforum.zoom.us/t/using-addparticipantspotlight-and-removeparticipantspotlights/92119>\
**Category:** Zoom Apps\
**Created:** [July 20, 2023, 8:51am UTC](https://devforum.zoom.us/t/using-addparticipantspotlight-and-removeparticipantspotlights/92119 "2023-07-20T08:51:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![so-young](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/so-young/32/36768_2.png) [@so-young](https://devforum.zoom.us/u/so-young)\
**Post date:** [July 20, 2023, 8:51am UTC](https://devforum.zoom.us/t/using-addparticipantspotlight-and-removeparticipantspotlights/92119/1 "2023-07-20T08:51:10Z")

</div>

Hi, we’re using addParticipantSpotlight to spotlight a list of participants like this:

```auto
for (const id of pidsToSpotlight) {
     await zoomSdk.addParticipantSpotlight({ 
            participantUUID: id
      });
}

```

but it seems like at times, only the first few calls actually succeed in spotlighting the participant, and all the subsequent calls executed in the loop do not spotlight the participant id even though they also return `{ message: "Success" }`.

It works when waiting 1 - 2 seconds before making another `addParticipantSpotlight` call.

Same issue was experienced with the `removeParticipantSpotlights` call. This is how we call:

```auto
await zoomSdk.removeParticipantSpotlights({
         participantUUIDs: ["id0", "id1"]
});
await zoomSdk.addParticipantSpotlight({
       participantUUID: "id2"
});

```

when these functions are executed without waiting 1 - 3 seconds in between, participant with `"id1"` is often times not removed from spotlight even though `removeParticipantSpotlights` returns successfully with `{ message: "Success" }`.

Could you help check if there is an issue with these sdk functions or with how we are calling them?

Tagging @MaxM for visibility. Thank you!
