I faced the below error when i use try and cath in my PS script.
**E n t e r i n g S a i l P o i n t r u l e **
**E r r o r : I t e m = - > M e s s a g e = C a n n o t v a l i d a t e a r g u m e n t o n p a r a m e t e r ' S e s s i o n ' . T h e a r g u m e n t i s n u l l . P r o v i d e a v a l i d v a l u e f o r t h e a r g u m e n t , a n d t h e n t r y r u n n i n g t h e c o m m a n d a g a i n . **
**E x i t i n g S a i l P o i n t r u l e**
My PS script is working now. but not sure how it’s working in the backend as there are lot of users it’s not running through the script to assign groups. How can we validate and fix that any idea?
1st add some more debug logging in you PowerShell using: Add-Content $logfile “Some debug data”
Also move the line $logfile = “E:\IQService\logsdl\removelog.txt”
Directly below Add-type -path “E:\IQService\Utils.dll” to have the $logfile as soon as possible
To make the errors visible in the log file. SilentContinue will continue to the next statement on errors and will not show the error it got.
Then I would go back to the test code you were using 10 days ago and call the PowerShell from within IdentityIQ for one or more users (who got no groups assigned) to see what the error is.
Can anyone explain how the distribution list works in the backend. My powershell script is working now but i don’t see the changes in the user sequentially. It’s working randomly and mostly the user who are already updated it’s currently updating it. Can anyone please help on this.
A distribution list is a separate object and is managed within Exchange Online (MsolService). A distribution list has references to Users in Entra ID (Azure AD).
Users are managed via Entra ID and don’t have a reference to Msol distribution lists.
So you will not see any reference to a Msol distribution list on an Entra ID user.
You need to develop PowerShell script for your requirements, we generally use to get relevant commands from our Exchange team, we just use to develop them to trigger through SailPoint and accept inputs from SailPoint account request.