def scopes(user, groups): return db.get_scopes_by_match(user, groups)
def lookup(cls, login, groups): return db.get_scopes_by_match(login, matches=groups)
def lookup(cls, login: str, groups: List[str]) -> List[str]: return db.get_scopes_by_match(login, matches=groups)
def lookup(cls, login: str, roles: List[str]) -> List[Scope]: return [Scope(s) for s in db.get_scopes_by_match(login, matches=roles)]