POST Security Containers ID Roles

The POST /Security/Containers/{id}/Roles method is used to assign permissions for a security role to a certificate store container. This method returns HTTP 200 OK on a success with the details of the security role and permissions.

See also POST Security Roles ID Permissions Containers to assign permissions for one or more certificate store containers to a security role.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/security/modify/

The user must hold a role containing this permission in the Global Permission Set (see Permission Sets).

Table 576: POST Security Containers {id} Roles Input Parameters

Name

In

Description
id Path

Required. An integer indicating the Keyfactor Command reference ID of the certificate store container to update.

Use the GET /CertificateStoreContainers method (see GET Certificate Store Containers) to determine the ID of the certificate store container.

SecurityRoleId Body

Required. An integer indicating the Keyfactor Command reference ID of the security role granted permissions to the certificate store container.

Use the GET /Security/Roles method (see GET Security Roles) to determine the ID of the security role.

Permissions Body

Required. A comma-delimited array of strings indicating the permissions granted to the role for the certificate store container. See Certificate Store Management for an overview of the possible permissions.

For example:

Copy
"Permissions": [
   "Read",
   "Modify"
]

Table 577: POST Security Containers {id} Roles Response Data

Name Description
SecurityRoleId

An integer indicating the Keyfactor Command reference ID of the security role granted permissions to the certificate store container.

Name A string containing the short reference name for the security role granted permissions to the certificate store container.
Permissions

A comma-delimited array of strings indicating the permissions granted to the role for the certificate store container. See Certificate Store Management for an overview of the possible permissions.

Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed A set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In the context of Keyfactor Command, it refers to the workflow builder, which allows you automate event-driven tasks when a certificate is requested or revoked. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the top of the Management Portal page next to the Log Out button.