Skip to main content

CampaignCreate

Properties​

NameTypeDescriptionNotes
namestrName of the campaign.[required]
descriptionstrDescription of the campaign.[required]
deadlinedateThe campaign's completion deadline date. While creating campaign, If deadline is passed as empty then automatically it will be set for two weeks later from current time.[optional]
deadline_timezonestrThe timezone must be in a valid ISO 8601 format. Timezones in ISO 8601 are represented as UTC (represented as 'Z') or as an offset from UTC. The offset format can be +/-hh:mm, +/-hhmm, or +/-hh.[optional]
email_notification_enabledboolEnables email notification for this campaign[required][default to False]
auto_revoke_allowedboolAllows auto revoke for this campaign[required][default to False]
recommendations_enabledboolEnables 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.[required][default to False]
sunset_comments_requiredboolDetermines if comments on sunset date changes are required.[required][default to True]
source_ids[]strA direct list of sourceIds to include in this campaign.[optional]
auto_activateboolIf autoActivate is true, the campaign will be activated automatically after generation completes. In this case, a deadline must be provided; otherwise, campaign creation will fail.[required][default to False]
typeCampaignType[required]
reviewerReviewer[required]
filter_refCampaignFilterIdRef[optional]
inline_filterCampaignFilterInline[optional]
search_based_paramsCampaignSearchBasedParams[optional]
remediator_refCampaignRemediatorRef[optional]
mandatory_comment_requirementCampaignMandatoryCommentRequirement[optional] [default to CampaignMandatoryCommentRequirement.NO_DECISIONS]
}

Example​

from sailpoint.gov_certification.models.campaign_create import CampaignCreate

campaign_create = CampaignCreate(
name='Manager Campaign',
description='Everyone needs to be reviewed by their manager',
deadline='Sun Mar 15 00:00:00 UTC 2020',
deadline_timezone='-05:00',
email_notification_enabled=False,
auto_revoke_allowed=False,
recommendations_enabled=True,
sunset_comments_required=True,
source_ids=["0fbe863c063c4c88a35fd7f17e8a3df5"],
auto_activate=True,
type='IDENTITY',
reviewer=sailpoint.gov_certification.models.reviewer.Reviewer(
id = '0fbe863c063c4c88a35fd7f17e8a3df5',
type = 'IDENTITY',
name = 'William Wilson', ),
filter_ref=sailpoint.gov_certification.models.campaign_filter_id_ref.CampaignFilterIdRef(
id = 'e9f9a139-7b84-2fd5-a658-42087040d3ac', ),
inline_filter=sailpoint.gov_certification.models.campaign_filter_inline.CampaignFilterInline(
mode = 'INCLUSION',
criteria_list = [{"criteriaType":"IDENTITY","criteriaProperty":"DISPLAY_NAME","criteriaValue":"support","operation":"EQUALS"}], ),
search_based_params=sailpoint.gov_certification.models.campaign_search_based_params.CampaignSearchBasedParams(
search_type = 'ACCESS',
query = 'admin',
identity_ids = ["0fbe863c063c4c88a35fd7f17e8a3df5"],
access_constraints = [
sailpoint.gov_certification.models.access_constraint.AccessConstraint(
type = 'ENTITLEMENT',
ids = ["2c90ad2a70ace7d50170acf22ca90010"],
operator = 'SELECTED', )
], ),
remediator_ref=sailpoint.gov_certification.models.campaign_remediator_ref.CampaignRemediatorRef(
id = '2c90ad2a70ace7d50170acf22ca90010',
name = 'Role Admin', ),
mandatory_comment_requirement='NO_DECISIONS'
)

[Back to top]