UserAndGroupManager

DIRAC FileCatalog mix-in class to manage users and groups

class DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserAndGroupManager.UserAndGroupManagerBase(database=None)
__init__(database=None)
getUserAndGroupRight(credDict)

Evaluate rights for user and group operations

setDatabase(database)
class DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserAndGroupManager.UserAndGroupManagerCS(database=None)

Bases: DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserAndGroupManager.UserAndGroupManagerBase

__init__(database=None)
addGroup(gname)
addUser(name)
deleteGroup(gname, force=True)
deleteUser(name, force=True)
findGroup(group)
findUser(user)
getGroupName(gid)
getGroups()
getUserAndGroupID(credDict)
getUserAndGroupRight(credDict)

Evaluate rights for user and group operations

getUserName(uid)
getUsers()
setDatabase(database)
class DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserAndGroupManager.UserAndGroupManagerDB(database=None)

Bases: DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserAndGroupManager.UserAndGroupManagerBase

__init__(database=None)
addGroup(gname)

Add a new group with a name ‘name’

addUser(uname)

Add a new user with a name ‘uname’

deleteGroup(gname, force=True)

Delete a group specified by its name

deleteUser(uname, force=True)

Delete a user specified by its name

findGroup(group)
findUser(user)
getGroupID(group)

Get ID for a group specified by its name

getGroupName(gid)

Get group name for the given id

getGroups()
getUserAndGroupID(credDict)

Get a uid, gid tuple for the given Credentials

getUserAndGroupRight(credDict)

Evaluate rights for user and group operations

getUserID(user)

Get ID for a user specified by its name

getUserName(uid)

Get user name for the given id

getUsers()
setDatabase(database)