This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Active Roles Server 7.0.2 workflow for automatically assign Office 365 license to AD user

Hi, I want to specific assign Office 365 license to Active Directory user accounts depending on group membership or OU location.

What is the best way to perform this process and can you help me by providing information about how to do it.

Parents
  • I think that a script will be necessary to convert the values.

    I found a listing here:
    www.worldatlas.com/.../ctycodes.htm

    A "switch" is how I would implement it. I haven't tested this in my lab, but it should be something like this:

    function ConvertCountryCode($Request)
    {
    $3digit = $DirObj.Get("c")
    $2digit = "US"

    switch ($3digit)
    {
    AFG{$2digit = "AF"}
    ALB{$2digit = "AL"}
    DZA{$2digit = "DZ"}
    .....
    }
    $Request.Put("edsvaOffice365-UsageLocation-code", $2digit)
    }

    You can probably use a macro to format the "switch" block after grabbing the values from the resource above.
Reply
  • I think that a script will be necessary to convert the values.

    I found a listing here:
    www.worldatlas.com/.../ctycodes.htm

    A "switch" is how I would implement it. I haven't tested this in my lab, but it should be something like this:

    function ConvertCountryCode($Request)
    {
    $3digit = $DirObj.Get("c")
    $2digit = "US"

    switch ($3digit)
    {
    AFG{$2digit = "AF"}
    ALB{$2digit = "AL"}
    DZA{$2digit = "DZ"}
    .....
    }
    $Request.Put("edsvaOffice365-UsageLocation-code", $2digit)
    }

    You can probably use a macro to format the "switch" block after grabbing the values from the resource above.
Children
No Data