Sync External Users within AEM | Community
Skip to main content
Ratna_Kumar
New Participant
July 11, 2017
Solved

Sync External Users within AEM

  • July 11, 2017
  • 2 replies
  • 1996 views

Hi All,

We have the login component on the page that is only specific to Health care professionals. Whenever user logs in, it will be authenticated on the different database.

I am using the Rest web-service for user authentication and I am getting the user details in the form of JSON response as per the example below.

{serviceResponse={"returnCode":0,"errorMessage":null,"resultPrincipal":{"id":"B12297E6-4E94-9848-E7E0-7D99F9916076","attributes":{"gender":1,"Cegedim_security_level":1,"userType":"XXXX","login":"ratna1.kumar@gmail.com","profession":"OTHER","postalcode":"411028","UID":"B12297E6-4E94-9848-E7E0-7D99F9916076","country":"IN","professionalPhone":"8378063385","firstname":"Rohit","email":"ratna1.kumar@gmail.com","name":"Nagare","city":"Pune"}}}, httpResponseCode=200}

Now I need to sync these user details within AEM. Can anyone tell me how to implement it or how to proceed.

Thanks,

Ratna.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Once you pull the user data from a database - you can use the Jackrabbit API to create users and even groups in AEM

Scott's Digital Community: Using Jackrabbit UserManager APIs to create AEM Users and Groups

2 replies

Employee
July 11, 2017

Hi Ratna,

is the page being restricted in AEM using a CUG to force login or is all the login functionality implemented front end only? (If front end, what happens if the user disabled JS, do they still see the page?)

You could write a custom authentication handler to creation of the user with the response from the web-service call.

Regards,

Opkar

smacdonald2008
smacdonald2008Accepted solution
New Participant
July 11, 2017

Once you pull the user data from a database - you can use the Jackrabbit API to create users and even groups in AEM

Scott's Digital Community: Using Jackrabbit UserManager APIs to create AEM Users and Groups