You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current configuration on target tenant : AndroidForWorkRestriction personalDeviceEnrollmentBlocked = $False
Error : "Message": "Tenant is not Global Admin or Intune Service Admin. Operation is restricted
Permission: The service account is already part of Global admin and Intune Administrator
Note: No issue using Credential without MFA.
Microsoft Graph has the permission.
Microsoft 365 DSC Version
1.24.1204.1
Which workloads are affected
Intune
The DSC configuration
IntuneDeviceEnrollmentPlatformRestriction "IntuneDeviceEnrollmentPlatformRestriction-All users and all devices"
{
AndroidForWorkRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$True
};
AndroidRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
Assignments =@(
MSFT_DeviceManagementConfigurationPolicyAssignments{
deviceAndAppManagementAssignmentFilterType ='none'
groupDisplayName ='All devices'
dataType ='#microsoft.graph.allDevicesAssignmentTarget'
}
);
ApplicationId =$ConfigurationData.NonNodeData.ApplicationId;
CertificateThumbprint =$ConfigurationData.NonNodeData.CertificateThumbprint;
TenantId =$ConfigurationData.NonNodeData.OrganizationName;
Description ="This is the default Device Type Restriction applied with the lowest priority to all users regardless of group membership.";
DeviceEnrollmentConfigurationType ="platformRestrictions";
DisplayName ="All users and all devices";
Ensure ="Present";
Identity ="00000000-0000-0000-0000-000000000000_DefaultPlatformRestrictions";
IosRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
MacOSRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
MacRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
Priority =0;
WindowsHomeSkuRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
WindowsRestriction = MSFT_DeviceEnrollmentPlatformRestriction{
platformBlocked =$False
personalDeviceEnrollmentBlocked =$False
};
}
}
}
Description of the issue
WorkLoad : Intune
Resource : IntuneDeviceEnrollmentPlatformRestriction
Scenario : Import using Service Principal. With Change in the configuration
Error : "Message": "Tenant is not Global Admin or Intune Service Admin. Operation is restricted
Permission: The service account is already part of Global admin and Intune Administrator
Note: No issue using Credential without MFA.
Microsoft Graph has the permission.
Microsoft 365 DSC Version
1.24.1204.1
Which workloads are affected
Intune
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: