Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

configure a room using server2server integration

Avatar

Level 3

Hi,

I'm able to create a room using lccs.php:

$account->createRoom($room);

I see that the createRoom method accept a template name as the second paramater.

Is it possible to possible to create the template with php so we don't need any manual configuration?

For example to create a room that auto-promotes users.

What is the name of the collection I need to subscribe to receive users login and logouts?

Can I change user roles from my server?

Thanks

1 Reply

Avatar

Employee

Templates needs to be created from a running room that is correctly configured so you'll need to create your template either from DevConsole or DevPortal.

But for example in your case you'll have to do this only once, create a room without a template, set autoPromote=true in DevConsole and save it as a template (and in this case you shouldn't even need to have a Flex application to access the room). After that you can create all your rooms from your PHP code using this template.