UserAndGroupManagerDB

DIRAC FileCatalog mix-in class to manage users and groups within the FC database

class DIRAC.DataManagementSystem.DB.FileCatalogComponents.UserGroupManager.UserAndGroupManagerDB.UserAndGroupManagerDB(database=None)

Bases: 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)