Label Locked By Former Employee Folgen

0
Avatar
Legacy Poster

I have a production label that is currently checked out and locked by a former employee.  I am not able to access the label thru librarian or bartender to make the needed changes to the label.  Is there a way to clear this lock?  I don't want multiple copies of the label with different names sitting in the production box. 

 

4 Kommentare

0
Avatar
Fernando Ramos Miracle
Moderator
Aktionen für Kommentare Permalink

Hello Bob,

 

You only need to give another user permissions to check in that document from Security Center. Once done so that user will be able to modify that document's sate too.

 

Regards.

0
Avatar
GertR
Aktionen für Kommentare Permalink

Hello,

my actual user has all Librarian rights from Security Center but I'm not able to "Undo Check Out" for a file which is locked by an other user.

Librarian says: This file is locked by another user and cannot be modified.

How can I unlock this file without loosing any older information?

What are the exact settings to make an super user (user with all Librarian rights)? 

 

I'm using Enterprise Automation 10.1 SR4

 

By the way: When adding a comment to this locked file the tool tip indicates than the user which one added the comment as lock user, not the real user which one did the check out, which is wrong!

1
Avatar
Jasper Wen
Moderator
Aktionen für Kommentare Permalink

I would double check that the particular user you are doing the "undo check out" has both administer permissions in BarTender Security Center and local admin permissions to the system. You may also try to right click on Librarian and run as admin.

0
Avatar
GertR
Aktionen für Kommentare Permalink

Thanks a lot for the hints!!! The "run as..." solves the problem in case I know the user credentials which one was locking the file...

I do not know all the passwords from our domain users so I made a small program in my asp mvc admin page:

Snippet

   public ActionResult CheckLockedLabels()
{
    return View(db.LockedLibLabel);
}
 
public ActionResult UndoCheckOut(string labelPath)
{
    Library library = new Library();
    UndoCheckOutOptions undoCheckOutOptions = new UndoCheckOutOptions();
    LibrarianFile loadedFile = library.GetFile(labelPath);
 
    undoCheckOutOptions.User = loadedFile.LockedByUser;
    loadedFile.UndoCheckOut(undoCheckOutOptions);
 
    CheckOldLocks();
 
    return RedirectToAction("CheckLockedLabels", db.LockedLibLabel);
}
 
private static void CheckOldLocks()
{
    ET01LabelEntities db = new ET01LabelEntities();
    Library library = new Library();
 
    foreach (var item in db.LockedLibLabel)
    {
        LibrarianFile myItem = library.GetFile(item.LabelPath);
        if (myItem.LockedByUser == null)
        {
            db.LockedLibLabel.Remove(item);
        }
    }
    db.SaveChanges();
}

 

 

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.