Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

User session Management

Avatar

Level 2

Hi Team,

I am working on a prototype that reads a sample user(for example : Bob) profile value from a Cookie/JS object, checks if the user Bob is in AEM repository,creates one if not and adds it to a specified group using user manager API.All is fine till this point.

Now I need the user to somehow be logged into the repository so that the feature which involves customization based on user/user groups comes into effect.

Tried a few options such as JcrUtils.getRepository("http://localhost:4502/crx/server"); were not of much help.

Kindly guide me in this case.

0 Replies