SOLVED

New-GlobalAddressList Error with -RoomList

%3CLINGO-SUB%20id%3D%22lingo-sub-2436220%22%20slang%3D%22en-US%22%3ENew-GlobalAddressList%20Error%20with%20-RoomList%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2436220%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20getting%20error%20while%20creating%20new%20GAL%20Policy%3A%26nbsp%3BAll%20room%20list%20%22IT%20Rooms%22%20was%20not%20found.%20Please%20make%20sure%20you%20typed%20the%20identity%20correctly.%3C%2FP%3E%3CP%3EHowever%20the%20group%20exists%20-%20showing%20the%20GroupType%3A%20Universal.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EName%20DisplayName%20GroupType%20PrimarySmtpAddress%3CBR%20%2F%3E----%20-----------%20---------%20------------------%3CBR%20%2F%3EIT%20Rooms202106101xxxx%20IT%20Rooms%20Universal%20%3CA%20href%3D%22mailto%3Aitrooms%40xxx.onmicrosoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eitrooms%40xxx.onmicrosoft.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%2C%20what's%20wrong%20on%20it%3F%3C%2FP%3E%3CP%3EThe%20AAD%20uses%20AD%20Connect%20to%20sync%20objects.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2436220%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERoomList%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2438008%22%20slang%3D%22en-US%22%3ERe%3A%20New-GlobalAddressList%20Error%20with%20-RoomList%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2438008%22%20slang%3D%22en-US%22%3EYou%20need%20to%20provide%20an%20address%20list%20object%2C%20not%20a%20room%20list%20(distribution%20group).%3C%2FLINGO-BODY%3E
Contributor

I'm getting error while creating new GAL Policy: All room list "IT Rooms" was not found. Please make sure you typed the identity correctly.

However the group exists - showing the GroupType: Universal.


Name DisplayName GroupType PrimarySmtpAddress
---- ----------- --------- ------------------
IT Rooms202106101xxxx IT Rooms Universal itrooms@xxx.onmicrosoft.com

 

Any idea, what's wrong on it?

The AAD uses AD Connect to sync objects.

2 Replies
best response confirmed by Red Flag (Contributor)
Solution
You need to provide an address list object, not a room list (distribution group).

@Vasil Michev 

You're right!

 

The paramater for -RoomList is not a RoomList but AddressList. Same as for -AddressLists. Even if this will be an empy list.
Docs:
New-AddressBookPolicy [-Name] <String> -AddressLists <AddressListIdParameter[]> -GlobalAddressList <GlobalAddressListIdParameter> -OfflineAddressBook <OfflineAddressBookIdParameter> -RoomList <AddressListIdParameter>

 

Thank you!