Create Grants
Search Grants
client.Search.NewGrants(ctx, body) (*ExpandedarrayListarrayNextPageTokenstringSearchNewGrantsResponse, error)
post/api/v1/search/grants
Invokes the c1.api.app.v1.AppEntitlementSearchService.SearchGrants method.
Parameters
bodyAppIDsfieldAppUserIDsfieldEntitlementRefsfieldExpandMaskfieldPageSizefieldPageTokenfieldResourceIDsfieldResourceTypeIDsfieldUserIDfieldSearchNewGrantsParams
Returns
SearchNewGrantsResponsestruct
The AppEntitlementSearchServiceSearchGrantsResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Search.NewGrants(context.TODO(), conductoronesdk.SearchNewGrantsParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Expanded)
}
200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appEntitlementUserBinding": {
"appUser": {
"appPath": "appPath",
"appUser": {
"appUserType": "APP_USER_TYPE_UNSPECIFIED",
"status": {}
},
"identityUserPath": "identityUserPath",
"lastUsagePath": "lastUsagePath"
},
"grantSources": [
{
"id": "id",
"appId": "appId"
}
]
},
"entitlement": {
"appEntitlement": {
"alias": "alias",
"appId": "appId",
"appResourceId": "appResourceId",
"appResourceTypeId": "appResourceTypeId",
"certifyPolicyId": "certifyPolicyId",
"complianceFrameworkValueIds": [
"string"
],
"defaultValuesApplied": true,
"deprovisionerPolicy": {
"connector": {
"account": {
"config": {
"foo": "bar"
},
"connectorId": "connectorId",
"doNotSave": {},
"saveToVault": {
"vaultIds": [
"string"
]
},
"schemaId": "schemaId"
},
"defaultBehavior": {
"connectorId": "connectorId"
},
"deleteAccount": {
"connectorId": "connectorId"
}
},
"delegated": {
"appId": "appId",
"entitlementId": "entitlementId",
"implicit": true
},
"externalTicket": {
"appId": "appId",
"connectorId": "connectorId",
"externalTicketProvisionerConfigId": "externalTicketProvisionerConfigId",
"instructions": "instructions"
},
"manual": {
"instructions": "instructions",
"userIds": [
"string"
]
},
"unconfigured": {},
"webhook": {
"webhookId": "webhookId"
}
},
"description": "description",
"displayName": "displayName",
"durationGrant": "durationGrant",
"durationUnset": {},
"emergencyGrantEnabled": true,
"emergencyGrantPolicyId": "emergencyGrantPolicyId",
"grantPolicyId": "grantPolicyId",
"isManuallyManaged": true,
"matchBatonId": "matchBatonId",
"overrideAccessRequestsDefaults": true,
"provisionerPolicy": {
"connector": {
"account": {
"config": {
"foo": "bar"
},
"connectorId": "connectorId",
"doNotSave": {},
"saveToVault": {
"vaultIds": [
"string"
]
},
"schemaId": "schemaId"
},
"defaultBehavior": {
"connectorId": "connectorId"
},
"deleteAccount": {
"connectorId": "connectorId"
}
},
"delegated": {
"appId": "appId",
"entitlementId": "entitlementId",
"implicit": true
},
"externalTicket": {
"appId": "appId",
"connectorId": "connectorId",
"externalTicketProvisionerConfigId": "externalTicketProvisionerConfigId",
"instructions": "instructions"
},
"manual": {
"instructions": "instructions",
"userIds": [
"string"
]
},
"unconfigured": {},
"webhook": {
"webhookId": "webhookId"
}
},
"purpose": "APP_ENTITLEMENT_PURPOSE_VALUE_UNSPECIFIED",
"revokePolicyId": "revokePolicyId",
"riskLevelValueId": "riskLevelValueId",
"slug": "slug",
"sourceConnectorIds": {
"foo": "string"
},
"userEditedMask": "userEditedMask"
},
"appPath": "appPath",
"appResourcePath": "appResourcePath",
"appResourceTypePath": "appResourceTypePath"
}
}
],
"nextPageToken": "nextPageToken"
}