I'm working on setting up journal rules for O365 users in PowerShell. I have created several journals via a file import using the following script:
$newstudent | foreach {New-JournalRule -Name ("StudentJournal - " + $_.login) -JournalEmailAddress $_.educatoremail -Scope Global -Recipient $_.login -Enabled $true}
Most of the journal rules register correctly. However, some of the "journal email addresses" are not registering. I receive the error message"The JournalEmailAddress can only be a mail user, a mail contact or an external address." The thing is, the journal email address IS an external address, but it's not picking it up as such.
I tried importing one of the users as a one-off with the following script (email addresses changed for privacy):
New-JournalRule -name "StudentJournal – *** Email address is removed for privacy *** -JournalEmailAddress ‘*** Email address is removed for privacy ***-Scope Global -Recipient *** Email address is removed for privacy *** -enabled $true
I still receive the same error message. I even tried adding the parents as contacts to see if that would make them register, but it didn't.
It doesn't happen for every account, and it's not a space issue. I can get most external addresses to register correctly, but not all. There doesn't seem to be a pattern for ones that register vs. ones that don't; some gmail addresses work fine, some one-off
domain addresses work fine, and then some just won't work.
Is there a reason that some external addresses won't register, and is there a work-around to get them to function properly?