privileges required for system user to lock and unlock the page

Avatar

Avatar

vijays80591732

Avatar

vijays80591732

vijays80591732

21-07-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Nupur_Jain

MVP

Avatar

Nupur_Jain

MVP

Nupur_Jain
MVP

21-07-2020

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

 

Answers (5)

Answers (5)

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

21-07-2020

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

Avatar

berliant

Employee

Avatar

berliant

Employee

berliant
Employee

21-07-2020

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

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

21-07-2020

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

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

21-07-2020

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

Avatar

vanegi

Employee

Avatar

vanegi

Employee

vanegi
Employee

21-07-2020

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."