package main
import(
"context"
"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
"log"
)
func main() {
ctx := context.Background()
s := conductoronesdkgo.New(
conductoronesdkgo.WithSecurity(shared.Security{
BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
Oauth: "<YOUR_OAUTH_HERE>",
}),
)
res, err := s.TaskAudit.List(ctx, nil)
if err != nil {
log.Fatal(err)
}
if res.TaskAuditListResponse != nil {
// handle response
}
}{
"list": [
{
"accessRequestOutcome": {
"outcome": "ACCESS_REQUEST_OUTCOME_UNSPECIFIED"
},
"accountLifecycleActionCreated": {
"batonActionDisplayName": "<string>",
"batonActionInvocationId": "<string>",
"batonActionName": "<string>",
"batonAppId": "<string>",
"batonConnectorId": "<string>"
},
"accountLifecycleActionFailed": {
"batonActionDisplayName": "<string>",
"batonActionInvocationId": "<string>",
"batonActionName": "<string>",
"batonAppId": "<string>",
"batonConnectorId": "<string>",
"error": "<string>"
},
"actionInstanceCreated": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionInstanceFailed": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionInstanceSucceeded": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionResult": {
"appEntitlementId": "<string>",
"appId": "<string>",
"cancelled": {},
"connectorActionId": "<string>",
"connectorId": "<string>",
"error": {
"errorCount": "<string>",
"errorReason": "<string>"
},
"success": {
"annotations": [
{
"@type": "<string>"
}
]
}
},
"actionSubmitted": {
"action": {
"actionType": "TASK_ACTION_TYPE_UNSPECIFIED",
"bulkActionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"policyStepId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
},
"approvalAutoAcceptedByPolicy": {},
"approvalAutoRejectedByPolicy": {},
"approvalInstanceChange": {
"instance": {
"approval": {
"agent": {
"agentFailureAction": "APPROVAL_AGENT_FAILURE_ACTION_UNSPECIFIED",
"agentMode": "APPROVAL_AGENT_MODE_UNSPECIFIED",
"agentUserId": "<string>",
"instructions": "<string>",
"policyIds": [
"<string>"
],
"reassignToUserIds": [
"<string>"
]
},
"allowDelegation": true,
"allowReassignment": true,
"allowedReassignees": [
"<string>"
],
"appOwners": {
"allowSelfApproval": true,
"requireDistinctApprovers": true
},
"assigned": true,
"entitlementOwners": {
"allowSelfApproval": true,
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"escalation": {
"cancelTicket": {},
"escalationComment": "<string>",
"expiration": "<string>",
"reassignToApprovers": {
"approverIds": [
"<string>"
]
},
"replacePolicy": {
"policyId": "<string>"
},
"skipStep": {}
},
"escalationEnabled": true,
"expression": {
"allowSelfApproval": true,
"assignedUserIds": [
"<string>"
],
"expressions": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"group": {
"allowSelfApproval": true,
"appGroupId": "<string>",
"appId": "<string>",
"fallback": true,
"fallbackGroupIds": [
{
"appEntitlementId": "<string>",
"appId": "<string>"
}
],
"fallbackUserIds": [
"<string>"
],
"isGroupFallbackEnabled": true,
"requireDistinctApprovers": true
},
"manager": {
"allowSelfApproval": true,
"assignedUserIds": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"requireApprovalReason": true,
"requireDenialReason": true,
"requireReassignmentReason": true,
"requiresStepUpProviderId": "<string>",
"resourceOwners": {
"allowSelfApproval": true,
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"self": {
"assignedUserIds": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
]
},
"users": {
"allowSelfApproval": true,
"requireDistinctApprovers": true,
"userIds": [
"<string>"
]
},
"webhook": {
"webhookId": "<string>"
}
},
"approved": {
"approvedAt": "2023-11-07T05:31:56Z",
"entitlements": [
{
"appEntitlementId": "<string>",
"appId": "<string>"
}
],
"stepUpTransactionId": "<string>",
"userId": "<string>"
},
"assignedAt": "2023-11-07T05:31:56Z",
"denied": {
"deniedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"escalationInstance": {
"alreadyEscalated": true,
"cancelTicket": {},
"escalationComment": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"reassignToApprovers": {
"approverIds": [
"<string>"
]
},
"replacePolicy": {
"policyId": "<string>"
},
"skipStep": {}
},
"reassigned": {
"newPolicyStepId": "<string>",
"reassignedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"reassignedByError": {
"description": "<string>",
"errorCode": "<string>",
"errorUserId": "<string>",
"erroredAt": "2023-11-07T05:31:56Z",
"newPolicyStepId": "<string>",
"reassignedAt": "2023-11-07T05:31:56Z"
},
"restarted": {
"oldPolicyStepId": "<string>",
"restartedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"skipped": {
"newPolicyStepId": "<string>",
"skippedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"state": "APPROVAL_INSTANCE_STATE_UNSPECIFIED"
}
},
"approvalReassigned": {
"newPolicyStepId": "<string>",
"newUsers": [
"<string>"
],
"oldPolicyStepId": "<string>",
"users": [
{
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
]
},
"approvedAutomatically": {},
"bulkActionError": {
"error": "<string>"
},
"certifyOutcome": {
"outcome": "CERTIFY_OUTCOME_UNSPECIFIED"
},
"comment": {
"comment": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>"
},
"conditionalPolicyExecutionResult": {
"condition": "<string>",
"conditionMatched": true,
"defaultCondition": true,
"error": "<string>",
"policyKey": "<string>"
},
"connectorActionsEnd": {
"policyStepId": "<string>"
},
"connectorActionsStart": {
"policyStepId": "<string>"
},
"created": "2023-11-07T05:31:56Z",
"currentState": "TASK_STATE_UNSPECIFIED",
"eventType": "TASK_AUDIT_EVENT_TYPE_UNSPECIFIED",
"expressionPolicyStepError": {
"error": "<string>"
},
"externalTicketCreated": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketProvisionerConfigName": "<string>",
"externalTicketUrl": "<string>"
},
"externalTicketError": {
"errorMessage": "<string>"
},
"externalTicketProvisionStepResolved": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketUrl": "<string>"
},
"externalTicketTriggered": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketProvisionerConfigName": "<string>"
},
"formInstanceChange": {
"isValid": true
},
"grantDurationUpdated": {
"duration": "<string>"
},
"grantOutcome": {
"outcome": "GRANT_OUTCOME_UNSPECIFIED"
},
"hardReset": {
"oldPolicyStepId": "<string>"
},
"id": "<string>",
"metadata": {
"user": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
},
"policyChanged": {
"newPolicyId": "<string>",
"oldPolicyId": "<string>"
},
"policyEvaluationStep": {
"stepComment": "<string>"
},
"provisionCancelled": {
"cancelReason": "<string>"
},
"provisionError": {
"error": "<string>"
},
"provisionReassigned": {
"newPolicyStepId": "<string>",
"newUsers": [
"<string>"
],
"oldPolicyStepId": "<string>",
"users": [
{
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
]
},
"reassignedToDelegate": {
"delegatedAssigneeUser": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
},
"delegatedAssigneeUserId": "<string>",
"originalAssigneeUser": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
},
"originalAssigneeUserId": "<string>"
},
"reassignmentListError": {
"errorMessage": "<string>"
},
"revokeOutcome": {
"outcome": "REVOKE_OUTCOME_UNSPECIFIED"
},
"slaEscalation": {
"message": "<string>"
},
"source": "SOURCE_UNSPECIFIED",
"stateChange": {
"previousState": "TASK_STATE_UNSPECIFIED"
},
"stepSkipped": {
"skippedBy": "<string>"
},
"stepUpApproval": {
"stepUpTransactionId": "<string>"
},
"taskCreated": {},
"taskEscalated": {
"oldPolicyId": "<string>",
"oldPolicyStepId": "<string>"
},
"taskRestarted": {
"oldPolicyStepId": "<string>"
},
"ticketId": "<string>",
"userId": "<string>",
"waitStepAnalysisSuccess": {
"stepId": "<string>",
"succeededAt": "2023-11-07T05:31:56Z"
},
"waitStepAnalysisTimedOut": {
"stepId": "<string>",
"timedOutAt": "2023-11-07T05:31:56Z"
},
"waitStepAnalysisWaiting": {
"stepId": "<string>"
},
"waitStepSuccess": {
"condition": "<string>",
"stepId": "<string>",
"succeededAt": "2023-11-07T05:31:56Z"
},
"waitStepTimedOut": {
"condition": "<string>",
"stepId": "<string>",
"timedOutAt": "2023-11-07T05:31:56Z"
},
"waitStepUntilTime": {
"stepId": "<string>",
"untilTime": "2023-11-07T05:31:56Z"
},
"waitStepWaiting": {
"condition": "<string>",
"stepId": "<string>"
},
"webhookApprovalAttempt": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalBadResponse": {
"error": "<string>",
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalFatalError": {
"error": "<string>",
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalSuccess": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalTriggered": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookAttempt": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookSuccess": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookTriggered": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"workflowStep": 123
}
],
"nextPageToken": "<string>"
}Invokes the c1.api.task.v1.TaskAudit.List method.
package main
import(
"context"
"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
"log"
)
func main() {
ctx := context.Background()
s := conductoronesdkgo.New(
conductoronesdkgo.WithSecurity(shared.Security{
BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
Oauth: "<YOUR_OAUTH_HERE>",
}),
)
res, err := s.TaskAudit.List(ctx, nil)
if err != nil {
log.Fatal(err)
}
if res.TaskAuditListResponse != nil {
// handle response
}
}{
"list": [
{
"accessRequestOutcome": {
"outcome": "ACCESS_REQUEST_OUTCOME_UNSPECIFIED"
},
"accountLifecycleActionCreated": {
"batonActionDisplayName": "<string>",
"batonActionInvocationId": "<string>",
"batonActionName": "<string>",
"batonAppId": "<string>",
"batonConnectorId": "<string>"
},
"accountLifecycleActionFailed": {
"batonActionDisplayName": "<string>",
"batonActionInvocationId": "<string>",
"batonActionName": "<string>",
"batonAppId": "<string>",
"batonConnectorId": "<string>",
"error": "<string>"
},
"actionInstanceCreated": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionInstanceFailed": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionInstanceSucceeded": {
"instance": {
"action": {
"automation": {
"automationTemplateId": "<string>"
}
},
"automation": {
"automationExecutionId": "<string>"
},
"cancelled": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"denied": {
"outcomeTime": "2023-11-07T05:31:56Z"
},
"error": {
"errorCode": "<string>",
"errorMessage": "<string>",
"outcomeTime": "2023-11-07T05:31:56Z"
},
"state": "ACTION_INSTANCE_STATE_UNSPECIFIED",
"success": {
"outcomeTime": "2023-11-07T05:31:56Z"
}
}
},
"actionResult": {
"appEntitlementId": "<string>",
"appId": "<string>",
"cancelled": {},
"connectorActionId": "<string>",
"connectorId": "<string>",
"error": {
"errorCount": "<string>",
"errorReason": "<string>"
},
"success": {
"annotations": [
{
"@type": "<string>"
}
]
}
},
"actionSubmitted": {
"action": {
"actionType": "TASK_ACTION_TYPE_UNSPECIFIED",
"bulkActionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"policyStepId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
},
"approvalAutoAcceptedByPolicy": {},
"approvalAutoRejectedByPolicy": {},
"approvalInstanceChange": {
"instance": {
"approval": {
"agent": {
"agentFailureAction": "APPROVAL_AGENT_FAILURE_ACTION_UNSPECIFIED",
"agentMode": "APPROVAL_AGENT_MODE_UNSPECIFIED",
"agentUserId": "<string>",
"instructions": "<string>",
"policyIds": [
"<string>"
],
"reassignToUserIds": [
"<string>"
]
},
"allowDelegation": true,
"allowReassignment": true,
"allowedReassignees": [
"<string>"
],
"appOwners": {
"allowSelfApproval": true,
"requireDistinctApprovers": true
},
"assigned": true,
"entitlementOwners": {
"allowSelfApproval": true,
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"escalation": {
"cancelTicket": {},
"escalationComment": "<string>",
"expiration": "<string>",
"reassignToApprovers": {
"approverIds": [
"<string>"
]
},
"replacePolicy": {
"policyId": "<string>"
},
"skipStep": {}
},
"escalationEnabled": true,
"expression": {
"allowSelfApproval": true,
"assignedUserIds": [
"<string>"
],
"expressions": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"group": {
"allowSelfApproval": true,
"appGroupId": "<string>",
"appId": "<string>",
"fallback": true,
"fallbackGroupIds": [
{
"appEntitlementId": "<string>",
"appId": "<string>"
}
],
"fallbackUserIds": [
"<string>"
],
"isGroupFallbackEnabled": true,
"requireDistinctApprovers": true
},
"manager": {
"allowSelfApproval": true,
"assignedUserIds": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"requireApprovalReason": true,
"requireDenialReason": true,
"requireReassignmentReason": true,
"requiresStepUpProviderId": "<string>",
"resourceOwners": {
"allowSelfApproval": true,
"fallback": true,
"fallbackUserIds": [
"<string>"
],
"requireDistinctApprovers": true
},
"self": {
"assignedUserIds": [
"<string>"
],
"fallback": true,
"fallbackUserIds": [
"<string>"
]
},
"users": {
"allowSelfApproval": true,
"requireDistinctApprovers": true,
"userIds": [
"<string>"
]
},
"webhook": {
"webhookId": "<string>"
}
},
"approved": {
"approvedAt": "2023-11-07T05:31:56Z",
"entitlements": [
{
"appEntitlementId": "<string>",
"appId": "<string>"
}
],
"stepUpTransactionId": "<string>",
"userId": "<string>"
},
"assignedAt": "2023-11-07T05:31:56Z",
"denied": {
"deniedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"escalationInstance": {
"alreadyEscalated": true,
"cancelTicket": {},
"escalationComment": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"reassignToApprovers": {
"approverIds": [
"<string>"
]
},
"replacePolicy": {
"policyId": "<string>"
},
"skipStep": {}
},
"reassigned": {
"newPolicyStepId": "<string>",
"reassignedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"reassignedByError": {
"description": "<string>",
"errorCode": "<string>",
"errorUserId": "<string>",
"erroredAt": "2023-11-07T05:31:56Z",
"newPolicyStepId": "<string>",
"reassignedAt": "2023-11-07T05:31:56Z"
},
"restarted": {
"oldPolicyStepId": "<string>",
"restartedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"skipped": {
"newPolicyStepId": "<string>",
"skippedAt": "2023-11-07T05:31:56Z",
"userId": "<string>"
},
"state": "APPROVAL_INSTANCE_STATE_UNSPECIFIED"
}
},
"approvalReassigned": {
"newPolicyStepId": "<string>",
"newUsers": [
"<string>"
],
"oldPolicyStepId": "<string>",
"users": [
{
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
]
},
"approvedAutomatically": {},
"bulkActionError": {
"error": "<string>"
},
"certifyOutcome": {
"outcome": "CERTIFY_OUTCOME_UNSPECIFIED"
},
"comment": {
"comment": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>"
},
"conditionalPolicyExecutionResult": {
"condition": "<string>",
"conditionMatched": true,
"defaultCondition": true,
"error": "<string>",
"policyKey": "<string>"
},
"connectorActionsEnd": {
"policyStepId": "<string>"
},
"connectorActionsStart": {
"policyStepId": "<string>"
},
"created": "2023-11-07T05:31:56Z",
"currentState": "TASK_STATE_UNSPECIFIED",
"eventType": "TASK_AUDIT_EVENT_TYPE_UNSPECIFIED",
"expressionPolicyStepError": {
"error": "<string>"
},
"externalTicketCreated": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketProvisionerConfigName": "<string>",
"externalTicketUrl": "<string>"
},
"externalTicketError": {
"errorMessage": "<string>"
},
"externalTicketProvisionStepResolved": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketUrl": "<string>"
},
"externalTicketTriggered": {
"appId": "<string>",
"connectorId": "<string>",
"externalTicketId": "<string>",
"externalTicketProvisionerConfigId": "<string>",
"externalTicketProvisionerConfigName": "<string>"
},
"formInstanceChange": {
"isValid": true
},
"grantDurationUpdated": {
"duration": "<string>"
},
"grantOutcome": {
"outcome": "GRANT_OUTCOME_UNSPECIFIED"
},
"hardReset": {
"oldPolicyStepId": "<string>"
},
"id": "<string>",
"metadata": {
"user": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
},
"policyChanged": {
"newPolicyId": "<string>",
"oldPolicyId": "<string>"
},
"policyEvaluationStep": {
"stepComment": "<string>"
},
"provisionCancelled": {
"cancelReason": "<string>"
},
"provisionError": {
"error": "<string>"
},
"provisionReassigned": {
"newPolicyStepId": "<string>",
"newUsers": [
"<string>"
],
"oldPolicyStepId": "<string>",
"users": [
{
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
}
]
},
"reassignedToDelegate": {
"delegatedAssigneeUser": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
},
"delegatedAssigneeUserId": "<string>",
"originalAssigneeUser": {
"createdAt": "2023-11-07T05:31:56Z",
"delegatedUserId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"department": "<string>",
"departmentSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"directoryIds": [
"<string>"
],
"directoryStatus": "UNKNOWN",
"directoryStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"displayName": "<string>",
"email": "<string>",
"emailSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"emails": [
"<string>"
],
"employeeIdSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employeeIds": [
"<string>"
],
"employmentStatus": "<string>",
"employmentStatusSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"employmentType": "<string>",
"employmentTypeSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"id": "<string>",
"jobTitle": "<string>",
"jobTitleSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"managerIds": [
"<string>"
],
"managerSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"profile": {},
"roleIds": [
"<string>"
],
"status": "UNKNOWN",
"type": "USER_TYPE_UNSPECIFIED",
"updatedAt": "2023-11-07T05:31:56Z",
"username": "<string>",
"usernameSources": [
{
"appId": "<string>",
"appUserId": "<string>",
"appUserProfileAttributeKey": "<string>",
"userAttributeMappingId": "<string>",
"value": "<string>"
}
],
"usernames": [
"<string>"
]
},
"originalAssigneeUserId": "<string>"
},
"reassignmentListError": {
"errorMessage": "<string>"
},
"revokeOutcome": {
"outcome": "REVOKE_OUTCOME_UNSPECIFIED"
},
"slaEscalation": {
"message": "<string>"
},
"source": "SOURCE_UNSPECIFIED",
"stateChange": {
"previousState": "TASK_STATE_UNSPECIFIED"
},
"stepSkipped": {
"skippedBy": "<string>"
},
"stepUpApproval": {
"stepUpTransactionId": "<string>"
},
"taskCreated": {},
"taskEscalated": {
"oldPolicyId": "<string>",
"oldPolicyStepId": "<string>"
},
"taskRestarted": {
"oldPolicyStepId": "<string>"
},
"ticketId": "<string>",
"userId": "<string>",
"waitStepAnalysisSuccess": {
"stepId": "<string>",
"succeededAt": "2023-11-07T05:31:56Z"
},
"waitStepAnalysisTimedOut": {
"stepId": "<string>",
"timedOutAt": "2023-11-07T05:31:56Z"
},
"waitStepAnalysisWaiting": {
"stepId": "<string>"
},
"waitStepSuccess": {
"condition": "<string>",
"stepId": "<string>",
"succeededAt": "2023-11-07T05:31:56Z"
},
"waitStepTimedOut": {
"condition": "<string>",
"stepId": "<string>",
"timedOutAt": "2023-11-07T05:31:56Z"
},
"waitStepUntilTime": {
"stepId": "<string>",
"untilTime": "2023-11-07T05:31:56Z"
},
"waitStepWaiting": {
"condition": "<string>",
"stepId": "<string>"
},
"webhookApprovalAttempt": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalBadResponse": {
"error": "<string>",
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalFatalError": {
"error": "<string>",
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalSuccess": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookApprovalTriggered": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookAttempt": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookSuccess": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"webhookTriggered": {
"webhookId": "<string>",
"webhookInstanceId": "<string>",
"webhookName": "<string>",
"webhookUrl": "<string>"
},
"workflowStep": 123
}
],
"nextPageToken": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Was this page helpful?