-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-MgEntitlementManagementCatalog #2230
Comments
Hi SuryenduB, I was able to replicate your issue by using what you had typed:
I was also able to replicate it using It looks like the -DisplayNameEq parameter is a smart parameter which takes some of the pain from the Graph API's filter syntax for you, so I was able to resolve this problem by simply using:
To elaborate, I removed both sets of quotes around the $CatalogName I hope this helps. |
This is working. |
This issue is reappearing I have signed in as Global Admin Connect-MgGraph . 2023-08-12 14784425548699500622 PS C:\Users\14784425548699500622\Documents\Scripts> $CatalogName = "General" |
Hi SuryenduB, This is a different issue this time. Previously, the message you received was: This time, the message you're getting is: Are you using the same administrator account as last time? If you run Get-MgContext after signing in, do you see the following scopes: Are you signed into the correct tenant? |
I have seen you need to sign out with disconnect-graph and then sign in again with connect-graph to work with entitlement management (identity governance) commandlet. This is not the case with other MgGraph command. |
@SuryenduB I am closing this issue because the original issue was addressed by @SeniorConsulting (Thank you so much 😃), If you are still experiencing the auth problem, please open a new issue for that. |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
...
Expected behavior
Debug Output
HTTP Method:
GET
Absolute Uri:
https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/catalogs?$filter=displayName eq %27%27Tier 0 Azure Role Catalog%27%27
Headers:
FeatureFlag : 00000043
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22000; en-US),PowerShell/2023.6.0
Accept-Encoding : gzip
SdkVersion : graph-powershell/2.2.0
client-request-id : c1915a4e-4f30-41a1-98be-cbd15ec6dcf2
Body:
============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 191b1474-6514-4a51-b1c0-6e7855c9e82f
client-request-id : c1915a4e-4f30-41a1-98be-cbd15ec6dcf2
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000AED"}}
Date : Tue, 08 Aug 2023 17:19:32 GMT
Body:
{
"error": {
"code": "BadRequest",
"message": "Invalid filter clause: Syntax error at position 21 in 'displayName eq ''Tier 0 Azure Role Catalog'''.",
"innerError": {
"date": "2023-08-08T17:19:32",
"request-id": "191b1474-6514-4a51-b1c0-6e7855c9e82f",
"client-request-id": "c1915a4e-4f30-41a1-98be-cbd15ec6dcf2"
}
}
}
Get-MgEntitlementManagementCatalog_List: C:\Program Files\PowerShell\Modules\Microsoft.Graph.Identity.Governance\2.2.0\custom\Get-MgEntitlementManagementCatalog.ps1:158:5
Line |
158 | Microsoft.Graph.Identity.Governance.private\Get-MgEntitlementMana …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Invalid filter clause: Syntax error at position 21 in 'displayName eq ''Tier 0 Azure Role
| Catalog'''. Status: 400 (BadRequest) ErrorCode: BadRequest Date: 2023-08-08T17:19:32
| Headers: Transfer-Encoding : chunked Vary :
| Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id
| : 191b1474-6514-4a51-b1c0-6e7855c9e82f client-request-id :
| c1915a4e-4f30-41a1-98be-cbd15ec6dcf2 x-ms-ags-diagnostic :
| {"ServerInfo":{"DataCenter":"Germany West
| Central","Slice":"E","Ring":"5","ScaleUnit":"003","RoleInstance":"FR1PEPF00000AED"}} Date
| : Tue, 08 Aug 2023 17:19:32 GMT
[CmdletEndProcessing]: - Get-MgEntitlementManagementCatalog end processing
Module Version
Script 2.2.0 Microsoft.Graph.Identity.Directory… Core,Desk {Confirm-MgContactMe…
Script 2.2.0 Microsoft.Graph.Identity.Governance Core,Desk {Add-MgIdentityGover…
Script 2.2.0 Microsoft.Graph.Identity.Partner Core,Desk {Get-MgTenantRelatio…
Script 2.2.0 Microsoft.Graph.Identity.SignIns Core,Desk {Confirm-MgRiskyServ…
Environment Data
Name Value
PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: