Professional Documents
Culture Documents
Runbook For Automating TemporaryUsersBirthRghts
Runbook For Automating TemporaryUsersBirthRghts
Runbook For Automating TemporaryUsersBirthRghts
The content of this document is intended for IBM internal use only. None of this information shall
be divulged to persons other than IBM employees, or individuals or organizations authorized by
IBM in accordance with existing policy regarding release of company information.
________________________________________________________________________
Table of Contents
Document Control.....................................................................................................................................2
_____________________________________________________________________
1
Document Control
Summary of Changes
DOCUMENT HISTORY
Original
IAM Team 1.0
Document
_____________________________________________________________________
2
Runbook for Implementing Temporary-users birth Rights
provisioning
2.
Advanced Query : (a.statuskey = 1) and (a.startdate <= adddate(curdate(), 14)) and (a.employeeid is not null)
and (a.leaveStatus is null) and (a.employeeclass not like 'Tier%') and (a.customproperty22 = 'BAIN|NONEMP|
AGENCY') or (a.customproperty22 = 'BAIN|NONEMP|INDEP') and ((a.employeeType = 'OUT_Outsourced
Agency Contractor') or (a.employeeType = 'OUT_Outsourced Independent Contractor'))
_____________________________________________________________________
3
Step2: Update “USER_IMPORT_MAPPING” section of below workday connections with
following mapping.
Bain-Workday-NewHire-Nonemployee
Bain-Workday-NewHire-Global
Bain-Workday-Full
Bain-Workday-Update-Global
"CUSTOMPROPERTY25":"Worker_Data.Employment_Data.Worker_Job_Data.Position_Organi
zations_Data.Position_Organization_Data(Organization_Data->Organization_Name=='Global
Regional').Organization_Data.Organization_Reference_ID".
Bain-Workday-NewHire-Nonemployee
_____________________________________________________________________
4
param
[Parameter(Mandatory=$True)]
[string]$objSAM,
[Parameter(Mandatory=$False)]
[ValidateSet("C","V","I","A","BAN","RTN","BAE","BSG","STANDARD","TEMP",$null)]
[string]$Type
#added on 05-04-2023 to skip the trailing period character from the user firstname and lastname
return
$prefix =$givenName
$prefix = $surName
else{
_____________________________________________________________________
5
}
$prefix = [Text.Encoding]::ASCII.GetString([Text.Encoding]::GetEncoding("Cyrillic").GetBytes($prefix))
$newmail = $null
$mailType = $Type.ToUpper()
switch ($type) {
$i = 1
$check = $null
if ($check)
do
$i++
$newmail = $prefix+$i+$domain
_____________________________________________________________________
6
}until (!$checkMail)
return $newmail
if(!($check.mail))
else
$email=$check.mail
if ($objSAM) {
else {
_____________________________________________________________________
7
return
if(!($check.mail))
else
$email=$check.mail
if ($objSAM) {
else {
return
_____________________________________________________________________
8
}
if(!($check.mail))
else
$email=$check.mail
if ($objSAM) {
else {
return
_____________________________________________________________________
9
Step5: Modify the Create Account and Update Account Jsons in Active Directory connection.
Replace the existing attributes code with following changes.
_____________________________________________________________________
10