How can I have a list of all participants's id?

I want to have an array of all participants’s id to kick all of them in a for loop and close the meeting.