# Provisioning Help

**URL:** <https://developer.sailpoint.com/discuss/t/provisioning-help/81100>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, provisioning\
**Created:** [September 13, 2024, 1:47am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100 "2024-09-13T01:47:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshu77](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@anshu77](https://developer.sailpoint.com/discuss/u/anshu77)\
**Post date:** [September 13, 2024, 1:47am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/1 "2024-09-13T01:47:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [September 13, 2024, 9:05am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/2 "2024-09-13T09:05:03Z")

</div>

Hi @anshu77,

can you share the rule you are using in this moment?

---

<div class="post-metadata">

**Author:** ![anshu77](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@anshu77](https://developer.sailpoint.com/discuss/u/anshu77)\
**Post date:** [September 13, 2024, 9:20am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/3 "2024-09-13T09:20:00Z")

</div>

Hi Emanuele,  
Thanks for the response. I am passing mailNickName and HomeMDB Attribute in AD application provisioning policy

```java
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;
    }

```

```powershell
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                          
            }
        }

```

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [September 15, 2024, 10:00am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/4 "2024-09-15T10:00:31Z")

</div>

> [@anshu77](#):
>
> mailbox

look this topic, maybe can help you:

[https://community.sailpoint.com/t5/IdentityIQ-Forum/Remote-Mailbox-Creation/m-p/9898](https://community.sailpoint.com/t5/IdentityIQ-Forum/Remote-Mailbox-Creation/m-p/9898)

---

<div class="post-metadata">

**Author:** ![anshu77](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@anshu77](https://developer.sailpoint.com/discuss/u/anshu77)\
**Post date:** [September 16, 2024, 8:46am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/5 "2024-09-16T08:46:03Z")

</div>

Thanks, I have already seen all the links related to this topic in all the community.  
It’s not helping to move forward.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [November 15, 2024, 8:46am UTC](https://developer.sailpoint.com/discuss/t/provisioning-help/81100/6 "2024-11-15T08:46:39Z")

</div>

Closed on November 15, 2024, 8:46am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
