Skip to main content

List Campaigns

GET 

https://sailpoint.api.identitynow.com/beta/campaigns

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Use this API to get a list of campaigns. The API can provide increased level of detail for each campaign for the correct provided query. Though this Beta endpoint has been deprecated, you can find its V3 equivalent here.

A token with ORG_ADMIN, CERT_ADMIN or REPORT_ADMIN authority is required to call this API.

Request

Query Parameters

    detail string

    Possible values: [SLIM, FULL]

    Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior.

    Example: FULL
    limit int32

    Possible values: <= 250

    Max number of results to return. See V3 API Standard Collection Parameters for more information.

    Default value: 250
    Example: 250
    offset int32

    Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.

    Default value: 0
    Example: 0
    count boolean

    If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored.

    Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used.

    See V3 API Standard Collection Parameters for more information.

    Default value: false
    Example: true
    filters string

    Filter results using the standard syntax described in V3 API Standard Collection Parameters

    Filtering is supported for the following fields and operators:

    id: eq, in

    name: eq, sw

    status: eq, in

    Example: name eq "Manager Campaign"
    sorters comma-separated

    Sort results using the standard syntax described in V3 API Standard Collection Parameters

    Sorting is supported for the following fields: name, created

    Example: name

Responses

List of campaign objects. By default, the API returns a list of SLIM campaigns.

Schema
  • Array [
  • anyOf
    idstring

    Id of the campaign

    Example: 2c9079b270a266a60170a2779fcb0007
    namestringrequired

    The campaign name. If this object is part of a template, special formatting applies; see the /campaign-templates/{id}/generate endpoint documentation for details.

    Example: Manager Campaign
    descriptionstringrequired

    The campaign description. If this object is part of a template, special formatting applies; see the /campaign-templates/{id}/generate endpoint documentation for details.

    Example: Everyone needs to be reviewed by their manager
    deadlinedate-time

    The campaign's completion deadline. This date must be in the future in order to activate the campaign. If you try to activate a campaign with a deadline of today or in the past, you will receive a 400 error response.

    Example: 2020-03-15T10:00:01.456Z
    typestringrequired

    The type of campaign. Could be extended in the future.

    Possible values: [MANAGER, SOURCE_OWNER, SEARCH, ROLE_COMPOSITION, MACHINE_ACCOUNT]

    Example: MANAGER
    emailNotificationEnabledboolean

    Enables email notification for this campaign

    Default value: false
    Example: false
    autoRevokeAllowedboolean

    Allows auto revoke for this campaign

    Default value: false
    Example: false
    recommendationsEnabledboolean

    Enables IAI for this campaign. Accepts true even if the IAI product feature is off. If IAI is turned off then campaigns generated from this template will indicate false. The real value will then be returned if IAI is ever enabled for the org in the future.

    Default value: false
    Example: true
    statusstring

    The campaign's current status.

    Possible values: [PENDING, STAGED, CANCELING, ACTIVATING, ACTIVE, COMPLETING, COMPLETED, ERROR, ARCHIVED]

    Example: ACTIVE
    correlatedStatusstring

    The correlatedStatus of the campaign. Only SOURCE_OWNER campaigns can be Uncorrelated. An Uncorrelated certification campaign only includes Uncorrelated identities (An identity is uncorrelated if it has no accounts on an authoritative source).

    Possible values: [CORRELATED, UNCORRELATED]

    Example: CORRELATED
    createddate-time

    Created time of the campaign

    Example: 2020-03-03T22:15:13.611Z
    totalCertificationsint32

    The total number of certifications in this campaign.

    Example: 100
    completedCertificationsint32

    The number of completed certifications in this campaign.

    Example: 10
    alerts object[]

    A list of errors and warnings that have accumulated.

  • Array [
  • levelstring

    Denotes the level of the message

    Possible values: [ERROR, WARN, INFO]

    Example: ERROR
    localizations object[]
  • Array [
  • localestringnullable

    The locale for the message text, a BCP 47 language tag.

    Example: en-US
    localeOriginstringnullable

    An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.

    Possible values: [DEFAULT, REQUEST, null]

    Example: DEFAULT
    textstring

    Actual text of the error message in the indicated locale.

    Example: The request was syntactically correct but its content is semantically invalid.
  • ]
  • ]
  • modifieddate-time

    Modified time of the campaign

    Example: 2020-03-03T22:20:12.674Z
    filter object

    Determines which items will be included in this campaign. The default campaign filter is used if this field is left blank.

    idstring

    The ID of whatever type of filter is being used.

    Example: 0fbe863c063c4c88a35fd7f17e8a3df5
    typestring

    Type of the filter

    Possible values: [CAMPAIGN_FILTER, RULE]

    Example: CAMPAIGN_FILTER
    namestring

    Name of the filter

    Example: Test Filter
    sunsetCommentsRequiredboolean

    Determines if comments on sunset date changes are required.

    Default value: true
    Example: true
    sourceOwnerCampaignInfo object

    Must be set only if the campaign type is SOURCE_OWNER.

    sourceIdsstring[]

    The list of sources to be included in the campaign.

    Example: ["0fbe863c063c4c88a35fd7f17e8a3df5"]
    searchCampaignInfo object

    Must be set only if the campaign type is SEARCH.

    typestringrequired

    The type of search campaign represented.

    Possible values: [IDENTITY, ACCESS]

    Example: ACCESS
    descriptionstring

    Describes this search campaign. Intended for storing the query used, and possibly the number of identities selected/available.

    Example: Search Campaign description
    reviewer object

    If specified, this identity or governance group will be the reviewer for all certifications in this campaign. The allowed DTO types are IDENTITY and GOVERNANCE_GROUP.

    typestring

    The reviewer's DTO type.

    Possible values: [GOVERNANCE_GROUP, IDENTITY]

    Example: IDENTITY
    idstring

    The reviewer's ID.

    Example: 2c91808568c529c60168cca6f90c1313
    namestring

    The reviewer's name.

    Example: William Wilson
    querystring

    The scope for the campaign. The campaign will cover identities returned by the query and identities that have access items returned by the query. One of query or identityIds must be set.

    Example: Search Campaign query description
    identityIdsstring[]

    A direct list of identities to include in this campaign. One of identityIds or query must be set.

    Possible values: <= 1000

    Example: ["0fbe863c063c4c88a35fd7f17e8a3df5"]
    accessConstraints object[]

    Further reduces the scope of the campaign by excluding identities (from query or identityIds) that do not have this access.

    Possible values: <= 1000

  • Array [
  • typestringrequired

    Type of Access

    Possible values: [ENTITLEMENT, ACCESS_PROFILE, ROLE]

    Example: ENTITLEMENT
    idsstring[]

    Must be set only if operator is SELECTED.

    Example: ["2c90ad2a70ace7d50170acf22ca90010"]
    operatorstringrequired

    Used to determine whether the scope of the campaign should be reduced for selected ids or all.

    Possible values: [ALL, SELECTED]

    Example: SELECTED
  • ]
  • roleCompositionCampaignInfo object

    Optional configuration options for role composition campaigns.

    reviewer object

    If specified, this identity or governance group will be the reviewer for all certifications in this campaign. The allowed DTO types are IDENTITY and GOVERNANCE_GROUP.

    typestring

    The reviewer's DTO type.

    Possible values: [GOVERNANCE_GROUP, IDENTITY]

    Example: IDENTITY
    idstring

    The reviewer's ID.

    Example: 2c91808568c529c60168cca6f90c1313
    namestring

    The reviewer's name.

    Example: William Wilson
    roleIdsstring[]

    Optional list of roles to include in this campaign. Only one of roleIds and query may be set; if neither are set, all roles are included.

    Example: ["2c90ad2a70ace7d50170acf22ca90010"]
    remediatorRef objectrequired

    This determines who remediation tasks will be assigned to. Remediation tasks are created for each revoke decision on items in the campaign. The only legal remediator type is 'IDENTITY', and the chosen identity must be a Role Admin or Org Admin.

    typestringrequired

    Legal Remediator Type

    Possible values: [IDENTITY]

    Example: IDENTITY
    idstringrequired

    The ID of the remediator.

    Example: 2c90ad2a70ace7d50170acf22ca90010
    namestring

    The name of the remediator.

    Example: Role Admin
    querystring

    Optional search query to scope this campaign to a set of roles. Only one of roleIds and query may be set; if neither are set, all roles are included.

    Example: Search Query
    descriptionstring

    Describes this role composition campaign. Intended for storing the query used, and possibly the number of roles selected/available.

    Example: Role Composition Description
    machineAccountCampaignInfo object

    Must be set only if the campaign type is MACHINE_ACCOUNT.

    sourceIdsstring[]

    The list of sources to be included in the campaign.

    Example: ["0fbe863c063c4c88a35fd7f17e8a3df5"]
    reviewerTypestring

    The reviewer's type.

    Possible values: [ACCOUNT_OWNER]

    Example: ACCOUNT_OWNER
    sourcesWithOrphanEntitlements object[]

    A list of sources in the campaign that contain "orphan entitlements" (entitlements without a corresponding Managed Attribute). An empty list indicates the campaign has no orphan entitlements. Null indicates there may be unknown orphan entitlements in the campaign (the campaign was created before this feature was implemented).

  • Array [
  • idstring

    Id of the source

    Example: 2c90ad2a70ace7d50170acf22ca90010
    typestring

    Type

    Possible values: [SOURCE]

    Example: SOURCE
    namestring

    Name of the source

    Example: Source with orphan entitlements
  • ]
  • mandatoryCommentRequirementstring

    Determines whether comments are required for decisions during certification reviews. You can require comments for all decisions, revoke-only decisions, or no decisions. By default, comments are not required for decisions.

    Possible values: [ALL_DECISIONS, REVOKE_ONLY_DECISIONS, NO_DECISIONS]

    Example: NO_DECISIONS
  • ]

Authorization: oauth2

type: Personal Access Token
scopes: idn:campaign:read, idn:campaign:manage, idn:campaign-report:read, idn:campaign-report:manage
user levels: ORG_ADMIN, CERT_ADMIN, REPORT_ADMIN

View SDK Reference

package main

import (
"context"
"fmt"
"os"
"encoding/json"
beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta"
sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional)
limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false)
filters := `name eq "Manager Campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional)
sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional)




configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute()
//resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp)
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/beta
Auth
Parameters
— query
— query
— query
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!