API: Which user owns key?

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Description

#{url}/api/v4/projects/#{repo}/deploy_keys allows me to get the keys for a repository. I check the list for a key, it's not there.

I try to POST the same key, and it refuses - because a user has already added it as a commit key.

It would really be nice to know which user owns this key.

Proposal

Extend #{url}/api/v4/keys/ to either support this - either a public key search, or a fingerprint search.

Links / references

https://docs.gitlab.com/ee/api/deploy_keys.html https://docs.gitlab.com/ee/api/keys.html

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading