Unable to make fresh deployments to an agent model serving endpoint due to permission issues

actualhuman_012
New Contributor III

One of my teammate left and now I cannot make fresh deployments to the agent serving endpoint created by him. Getting below error while trying to deploy with agents.deploy(). Any way to solve it without recreating the endpoint?

PermissionDenied: Principal *************** is not an active member of account ********-****-****-****-************.
Config: host=https://adb-****************.**.azuredatabricks.net, auth_type=runtime

File <command-**************>, line 1
----> 1 deployment_info = agents.deploy(
        model_name=MODEL_NAME_FQN,
        model_version=uc_registered_model_info.version,
        scale_to_zero=False,
        environment_vars=environment_vars,
        workload_size="Small"
    )

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-****/lib/python3.10/site-packages/databricks/sdk/_base_client.py:301, in _BaseClient._perform(...)
    299 error = self._error_parser.get_api_error(response)
    300 if error is not None:
--> 301     raise error from None