403 Forbidden with gitlab API

I tried to get info about all scheduled pipelines in all projects on my own GitLab instance through API (administrator token). I wrote a little script that go through all projects and try to get scheduled pipeline settings.
But If project’s owner switch off the pipelines (General-Permissions-Pipelines) than I get 403 Forbidden. Is that normal behavior for GitLab ? It’s very strange to get 403 because I’m a administrator :slight_smile:
But if project haven`t scheduled pipelines I got 200 OK )
For example:
curl --request GET --header ‘PRIVATE-TOKEN:$PRIVATE_TOKEN’ ‘http://example.com/api/v4/projects/1/pipeline_schedules
{“message”:“403 Forbidden”}
P.S. I used python-gitlab and I get exception about 403 Forbidden (script raises exception)

It seems if you disable the Pipeline feature, you will lose all access to the pipeline related data. https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/policies/project_policy.rb#L344

Thank you!
It`s sad :frowning: