List locks on feature class

10-06-2020 10:35 AM
New Contributor III

In python 3, using arcpy, I'm trying to find out what user has a lock on a particular feature class.  I can use TestLock(fc) to find out if there is a lock and I can do disconnect user to disconnect a user but how do I get a list of users that have a lock on a particular feature class?  This would be similar to going to ArcPro, showing properties on your connection, going to the Connections, clicking show connections, going to the Lock tab, and choosing the feature class from the object name dropdown (see attached).

Tags (1)
0 Kudos
0 Replies