def addUsertoProjectGroups(self, auth_user, project, new_user, groups):
        passwd = config.USERS[auth_user]['password']
        umail = config.USERS[new_user]['email']
        cmd = self.base_cmd % (auth_user, passwd)
        cmd = cmd + " membership add --project %s " % project
        cmd = cmd + " --user %s --groups %s" % (umail, groups)
        self.exe(cmd)
dataset/ETHPy150Open redhat-cip/software-factory/tests/functional/utils.py/ManageSfUtils.addUsertoProjectGroups/original