Composite write back to FIMService via Powershell

So if you have a large number of objects to update in FIMService it could be complicated..

Lithnet FIM/MIM Powershell Module makes it so much simpler..

Below is a script I used to say update all accounts which have “accountType” = oldaccounts and set “accountBlocked” to true (my custom schema).

Some explanations

  • I have set PageSize = 100 which means if you are returning more than that number process only 100 at a time..
  • I have set “-AttributesToGet” which gives me only the attribute what I want

See how easy is that? You can do multiple operations before save-resource and thus do a bunch of changes to say 1000 users and in 10 saves it will be done!!!

PS: As you can see its simple for demonstration and not doing any error handling etc..

Scheduling Syncs for ADConnect Maintenance

We have loads of objects in our AD / Azure AD.. we believe doing regular Full Imports and Full Syncs for all the MA’s is a good way to make sure Sync engine is healthy.

Had recently visited #MSAUIGNITE 2017 in Gold Coast, Australia and SME’s there suggested Full Sync is not needed in environments unless there has been a connector change.. But I disagree and consider ADConnect as Microsoft Identity Manager (MIM / FIM) and by experience we have seen a good healthy sync engine we should do FI / FS for maintenance.

After doing some initial sync timings, found our FI from Azure took 9 hrs and FS took about 2 hrs. Likewise from AD FI took 1 hr and FS took 2 hrs.

Decided we wanted to schedule each FI and FS to make sure sync engine is all caught up out of business hours.

Assumptions

  • The MA is called “AzureAD”
  • Run Profile Name is called “Full Import”

Do the following on our ADConnect Sync Box

  • Create a powershell script with the following code and save it as “AzureFI.ps1” at a location say D:\SyncScript

  • Create a task scheduler and run as the same user which runs the sync engine.
  • Schedule it once a week / month as per your requirement. As per your initial tests, you can schedule it out of business hours say 10pm and by morning it is finished.
  • For action
    • Action: Start a Program
    • Program/Script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    • Argument: -ExecutionPolicy Bypass -File “D:\SyncScript\AzureFI.ps1”

That’s it!!! You can create similar scripts and change ConnectorName / RunProfileName and create tasks for each at particular times.

You will have a healthy sync engine for ADConnect.

 

Going for Microsoft AU Ignite 2017 #Excited

Luckily got sponsored from work to go for MS AU Ignite 2017 to Gold Coast this year..

Hopefully get to learn more about new tech and meet people

Hit me up if you are there on @Piyush_

More Info: https://msftignite.com.au/

#Microsoft #MSAUIGNITE #AZURE #IDENTITY #AUTHENTICATION #OFFICE365 #FIM2010 #MIM2016

 

Cosmetic Bug in MIM SP1 Portal Display (v4.4.1302)

So another day – another bug found by me (I do that a lot apparently and its a known issue with me in my team 😛 )

If you install MIM SP1 v4.4.1302 and open up the FIM Portal there is a cosmetic bug with IE/Edge and Firefox. This does not happen in Chrome

When you open up – say the users tab in maximized view you would see

 

But if you change the size of the browser the center image does not shift and skews the view

 

It’s been confirmed by Microsoft and will probably be in the bottom of their list and fixed in upcoming releases