New-ManagementScope

Glenn Maxwell 11,316 Reputation points
2024-10-06T03:19:00.3433333+00:00

Hi All

i am using hybrid environment. My customattributes are synced from onprem Active Directory to Azure Active Directory. I am getting error in line2 at "extensionattribute01 -eq 'mbx.a1'" . if i use some other attribute like country, department i am not getting any error. please guide me with syntax.

Create a new Service Principal using below command
New-ServicePrincipal -AppId "1111111111" -ObjectId "6666666666666666666" -DisplayName MyTest1
 
Create a new management scope to use an existing one
New-ManagementScope -Name "CRS1" -RecipientRestrictionFilter "extensionattribute01 -eq 'mbx.a1'"
 
Create a new managemtrole for app using above management scope.
New-ManagementRoleAssignment -App  "1111111111" -Role " Application EWS.AccessAsApp" -CustomResourceScope "CRS1"

Microsoft Exchange Online
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,524 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,519 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,097 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,698 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.