Hi,
I have been able to successfully set the permissions for an Admin API keys that has full system access by using the stored proc 'ApiKeys_CreateOrUpdateApiKey'
I am using the same method to create an API key which needs to be able to publish packages to all feeds, can you tell me how the XML should be set?
This works for my Admin System API key
'<Inedo.ProGet.ApiKeys.ApiKey Assembly="ProGetCoreEx">' +
'<Properties ' +
'AllowPackagePromotionApi="False" ' +
'AllowRepackagingApi="False" ' +
'AllowFeedManagementApi="False" ' +
'AllowWebhooksApi="True" ' +
'AllowConnectorHealthApi="True" ' +
'AllowFeedsApi="True" ' +
'AllowDockerBlobReaderApi="False" ' +
'AllowSbomApi="True" ' +
'AllowSbomUpload="True" ' +
'UseApiKeyTasks="False" ' +
'AllowNativeApi="True" ' +
'DoNotLogRequest="False" ' +
'DoNotLogResponse="False" />' +
'</Inedo.ProGet.ApiKeys.ApiKey>'
This adds the api Key but gives me no permissions, the check box to 'Add/Repackage' is not getting checked.
I want to give the API key access to Add/Repackage on all feeds
I am using this XML:
'<Inedo.ProGet.ApiKeys.ApiKey Assembly="ProGetCoreEx">' +
'<Properties ' +
'AllowPackagePromotionApi="False" ' +
'AllowRepackagingApi="False" ' +
'AllowFeedManagementApi="False" ' +
'AllowWebhooksApi="False" ' +
'AllowConnectorHealthApi="False" ' +
'AllowFeedsApi="False" ' +
'AllowDockerBlobReaderApi="False" ' +
'AllowSbomApi="False" ' +
'AllowSbomUpload="False" ' +
'UseApiKeyTasks="True" ' +
'AllowNativeApi="False" ' +
'DoNotLogRequest="False" ' +
'DoNotLogResponse="False" />' +
'</Inedo.ProGet.ApiKeys.ApiKey>'
Are there any docs that explain these permissions or are you able to help me to see where I am going wrong?
thanks