Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to allow only one user to access the particular page in aem?

Avatar

Level 5

Hi,

 

There's a requirement to give permission to only one user to access the page that is created. The users-groups-maintenance page should be accessed by only one user. I added the user to access this page but other users are also able to access this page until and unless the other users are denied with the permission. Is there a way to allow one user and deny rest of the users to access this page?

 

Screenshot (67).png

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi ,

 

Can you please check if CUG feature is helpful in this usecase.

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/cug.html?lang=e...

 

Thanks 

View solution in original post

7 Replies

Avatar

Community Advisor

Create a group and assign ACL rather than user level permission and the the required user in that group.

Himanshu Jain

Avatar

Level 5

Hi @Himanshu_Jain ,

Is there any other way to view the page to only one user other than access control to that particular path.

Avatar

Community Advisor

If the other users are part of any common group then you can also simply deny the access to that group. 

Avatar

Level 5

Hi @Siva_Sogalapalli ,

If the user is part of administrators group and if I deny the access to users-groups-maintenance page. That user will still be able to access the page. As you mentioned above if I create the groups for access and deny and add users to these particular groups and if the users under deny group has the admin access it doesn't work as expected. Is there any other way to give permission to only one user.

Avatar

Community Advisor

@keerthana_hn I will suggest you update everyone group first just to disable that path from every content author and Create separate group which has permission to access all the required crxde path. BTW This is not recommended way we can also use Sling Filters Intsteads

Just go through this documentation about Managing ACL's https://experienceleague.adobe.com/docs/experience-manager-screens/user-guide/administering/setting-... 

Avatar

Community Advisor

If the ACLs level permissions are not working, you can create a group and add the user to that group

Also implement a sling filter which checks only for that path and also check the current use belongs to the group, if use user is present in that group then forward the request else Reject the request in the filter

Hope this is useful

Avatar

Correct answer by
Level 4

Hi ,

 

Can you please check if CUG feature is helpful in this usecase.

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/cug.html?lang=e...

 

Thanks