Skip to content

[ISSUE] intermittent platform.PermissionDenied #953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BriGuyNext opened this issue Apr 16, 2025 · 0 comments
Open

[ISSUE] intermittent platform.PermissionDenied #953

BriGuyNext opened this issue Apr 16, 2025 · 0 comments

Comments

@BriGuyNext
Copy link

Description
When using the python sdk to retrieve job details ocassionally when retrieving the job details or the job acls I get the error. Even though I am a workspace admin. If I retry a few moments later most of the time it starts working again. I have added a retry to my code but even with this it occasionally persists in failing.

Exception has occurred: PermissionDenied
User [email protected] does not have Admin or Manage Run or Owner or View permissions on job 750350742608178. Config: host=https://REDACTED.azuredatabricks.net, auth_type=databricks-cli

Reproduction
import databricks.sdk as databricks
w = WorkspaceClient()
joblist = w.jobs.list()
for job in joblist:
jobobj = w.jobs.get(job.job_id)
permissions = w.jobs.get_permissions(jobobj.job_id)
Expected behavior
A clear and concise description of what you expected to happen.

Is it a regression?
N/A

Debug Logs
DEBUG:urllib3.connectionpool:https://.azuredatabricks.net:443 "GET /api/2.2/jobs/get?job_id=134789678873445 HTTP/11" 403 None
DEBUG:databricks.sdk:GET /api/2.2/jobs/get?job_id=134789678873445
< 403 Forbidden
< {
< "details": [
< {
< "@type": "type.googleapis.com/google.rpc.RequestInfo",
< "request_id": "4572e565-d3b4-4061-aaba-50280482a1d4",
< "serving_data": ""
< }
< ],
< "error_code": "PERMISSION_DENIED",
< "message": "User @ does not have Admin or Manage Run or Owner or View permissions on ... (19 more bytes)"
< }

Other Information

  • OS: Windows 11
  • Version: 0.50.0

As you can see I am admin in the workspace.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant