Expand my Community achievements bar.

SOLVED

privileges required for system user to lock and unlock the page

Avatar

Level 4

Hi Team,

 

I have a below use case,

 

Lets say, Author-A has locked the page and he triggered the workflow. In, workflow I need to unlock the page using system user/super user (should not use admin session). How can I achieve it?

 

Tried below steps, but no luck:

1) created system user and provided jcr:all for content, workflow, etc/home. Am I missed to provide some permission still? what are the required permission for system user to lock and unlock, even its locked by other user?

2) Tried with workflow session.

 

Can anyone help to achieve this?

 

@arunpatidar26 @smacdonald2008 @arunpatidar26 @Ratna_Kumar @kautuk_sahni @wimsymons @cqsapientu69896 @vanegi @Veena_Vikram @varuns7990 @Theo_Pendle

 

Regards,

Vijay

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @vijays80591732 

 

Please refer post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-unlock-a-page-wi...

The user who has locked the page can only unlock the page. No other users even with all rights could unlock the same page.

 

So, Instead the current user who is triggering the workflow, the user should only start workflow and then you can use system user to lock it in the first process step and then after your workflow process/participation steps, if page is required to be unlocked, you can use same sytem user session to unlock it.

 

The only rights required to lock/unlock pages is jcr:lockManagement

 

Hope it helps!

Thanks!

Nupur

 

View solution in original post

7 Replies

Avatar

Community Advisor

So as per basics of user management , a page locked by User A can only be unlocked by either User A or Administrator. I think this will stand true for a system user too.

Avatar

Correct answer by
Community Advisor

Hi @vijays80591732 

 

Please refer post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-unlock-a-page-wi...

The user who has locked the page can only unlock the page. No other users even with all rights could unlock the same page.

 

So, Instead the current user who is triggering the workflow, the user should only start workflow and then you can use system user to lock it in the first process step and then after your workflow process/participation steps, if page is required to be unlocked, you can use same sytem user session to unlock it.

 

The only rights required to lock/unlock pages is jcr:lockManagement

 

Hope it helps!

Thanks!

Nupur

 

Avatar

Employee

Please check https://helpx.adobe.com/in/experience-manager/kb/UnlockALockedPage.html.

 

"The "admin" account can unlock any page by opening the page and clicking on "Unlock Page" from the page properties drop down

NOTE: The original user holding the lock does have permission to unlock the page. However, other users, even if a member of the administrators group, DO NOT have the right to unlock pages that have been locked. Only the "admin" account has this right."

 

 

Avatar

Employee Advisor

If you are looking for specific permissions, its "jcr:lockManagement" and you can add it from crxde "Access Control" tab Or from the new user management console if using 6.5. See below for more details:

 

Screen Shot 2020-07-21 at 8.21.57 AM.png

Avatar

Employee Advisor

If you are trying to automate it, you can simply use the lock/unlock processes as part of a workflow. That way the same system user will lock and unlock the node.

 

Screen Shot 2020-07-21 at 8.25.52 AM.png

Avatar

Employee

A page can be unlocked only by an admin is the lock owner 

Avatar

Level 4
Hi All, Thanks for your inputs. Yes, as everyone told I was unable to unlock page by superuser (eventhough If i give all the permission). So, using admin session I achieved. Thank Again