anshu77
(Anshu K)
September 13, 2024, 1:47am
1
Hello Experts,
We are currently on version 8.3 and need assistance with creating both mailboxes and mail users within the same provisioning plan. For some domains that are not yet integrated, we need to create mail users.
We are using birthright provisioning for AD/Exchange, where we pass the mailNickname
and homeMDB
attributes. We have a connector after create rule for the mailbox store, and in the provisioning process, we are utilizing dynamic field values.
I am having difficulty finding a method to create mail users for domains that are not yet integrated.
Could you please guide me?
Thanks
Anshu
Hi @anshu77 ,
can you share the rule you are using in this moment?
anshu77
(Anshu K)
September 13, 2024, 9:20am
3
Hi Emanuele,
Thanks for the response. I am passing mailNickName and HomeMDB Attribute in AD application provisioning policy
Field Value Rule -
//mailNickname
public static Object getFV_Company_Active_Directory_mailNickname_Rule(SailPointContext context, Identity identity, String op){
logger.trace("Enter Company_Active_Directory_mailNickname rule");
String val = verifyNull(identity.getAttribute("UserID").toLowerCase());
logger.trace("Exit Company_Active_Directory_mailNickname rule: " + val);
return val;
}
ConnectorBeforeCreate
function smallest-one($search){
#$dbs = Get-MailboxDatabase -Status | select DistinguishedName,DatabaseSize,IsExcludedFromProvisioning |where {$_.DistinguishedName -match "$search*"}
$dbs = Get-MailboxDatabase -Status | select DistinguishedName,DatabaseSize |where {$_.DistinguishedName -match "$search*"}
"GMD Returned:$?" >> CreateScript.log
"dbs:$dbs" >> CreateScript.log
$env:databaseToUse = ""
foreach($db in $dbs)
{
$dbSizeInBytes = $db.DatabaseSize.ToBytes()
$name = $db.DistinguishedName
out-errorLog "INFO" " Testing DB: $name / DB Size: $dbSizeInBytes "
if ($smallestDB)
{
if ($dbSizeInBytes -lt $smallestDB)
{
$smallestDB = $dbSizeInBytes
$env:databaseToUse = $name
"Database To Use: $env:databaseToUse / DB Size: $smallestDB" >> CreateScript.log
}
}
enistri_devo
(Emanuele Nistri)
September 15, 2024, 10:00am
4
1 Like
anshu77
(Anshu K)
September 16, 2024, 8:46am
5
Thanks, I have already seen all the links related to this topic in all the community.
It’s not helping to move forward.
system
(system)
Closed
November 15, 2024, 8:46am
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.