Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

how to clear a room

Avatar

Former Community Member

Hey,

i'm wondering what's the best way to clear a room fom the server-side.

I want to make sure, that there are no users in one particular room.

Is that possible to arrange from the php server-side?

I tried to delete the existing room and create it again, but these are pretty slow operations.

Thanks.

1 Reply

Avatar

Former Community Member

Hi There,

I'm not exactly sure what you're trying to do - you mean, you'd like to

kick out all the users via PHP? If that's it, check out the new

server-to-server APIs : you should be able to retractItem all of the

userDescriptors there :

CollectionName : UserManager

NodeName : UserList

You could do a quick FetchItems on this node first, see who's there, then

start booting them via retractItem.

let us know if this works for you.

nigel