microsoft-graph-docs icon indicating copy to clipboard operation
microsoft-graph-docs copied to clipboard

Feature request: Ability to remove secrets

Open JakobNielsenLEGO opened this issue 2 years ago • 5 comments

The trustFrameworkKeySet resource type (https://learn.microsoft.com/en-us/graph/api/resources/trustframeworkkeyset?view=graph-rest-beta ) supports uploading secrets and certificates, but no way to remove them again.

Updating the entire keyset with json body:

  {
      "keys": [
              {
                "kid": "<key>",
                "use": "enc",
                "kty": "secret"
              }
        ]
  }

throws the following error: AADB2C95059","message":"One of the keys in the payload has 'kid' which is not empty."

So the only way to trim down the keyset seems to be to delete it and create a new one.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

JakobNielsenLEGO avatar May 30 '23 13:05 JakobNielsenLEGO