Comments (5)
+1 from me, previously reported on Mastodon, I should have logged an issue, sorry.
from msidentitytools.
Same here today...
Get-mggroup -filter "groupTypes/any(c:c eq 'Unified')" | Get-MsIdGroupWritebackConfiguration
Write-Error: This command is not yet compatible with Microsoft Graph SDK Module v2 and the currently loaded
'Microsoft.Graph.Authentication' module is version '2.8.0'. To resolve, try opening a new PowerShell session, importing
an older version of the module, and running the command again.
from msidentitytools.
Hi @viperthunder, it looks like @merill is working on this issue and that Microsoft.Graph.Authentication version 2.8.0 is now added.
Here is what worked for me as a temporary work around.
- Clone the repo
- Open the vscode workspace
- Open the
Get-MsIdCrossTenantAccessActvitity.ps1
- Replace all occurences of
Get-MgAuditLogSignIn
withGet-MgBetaAuditLogSignIn
- Open
Test-MgCommandPrerequisites.ps1
- Insert
continue
on line 54 to skip the test.
51 ## Get Graph Command Details
52 [hashtable] $MgCommandLookup = @{}
53 foreach ($CommandName in $Name) {
54 continue
55 [array] $MgCommands = Find-MgGraphCommand -Command $CommandName -ApiVersion $ApiVersion
Finally, run Connect-MgGraph
in terminal and hit F5.
from msidentitytools.
Can you try with the latest published certain? Tx
from msidentitytools.
Hi @merill, I'm getting a different error when running 80bb6c4, which appear to be due to the Graph API v1 not supporting the properties used in the filter. I have created a PR if it helps, and below is the rationale.
This is the code I currently get when running your latest commit.
get-msIdCrossTenantAccessActivity
Get-MgAuditLogSignIn_List: C:\Users\MortenHenrichsen\source\repos\MSIdentityTools\src\Get-MsIdCrossTenantAccessActivity.ps1:269:17
Line |
269 | … $Outbound = Get-MgAuditLogSignIn -Filter ("CrossTenantAcc …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Invalid filter clause: Could not find a property named 'CrossTenantAccessType' on type 'microsoft.graph.signIn'. Status: 400 (BadRequest) ErrorCode: BadRequest Date: 2023-10-30T22:26:54 Headers: Transfer-Encoding : chunked Vary
| : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : 6f4ff6f3-2160-46eb-ab11-08459a73287c client-request-id : f8bcbed8-4f3c-412a-829a-ed81e03d3d1c x-ms-ags-diagnostic :
| {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"AM2PEPF0000BE03"}} Date : Mon, 30 Oct 2023 22:26:53 GMT
Get-MgAuditLogSignIn_List: C:\Users\MortenHenrichsen\source\repos\MSIdentityTools\src\Get-MsIdCrossTenantAccessActivity.ps1:274:17
Line |
274 | … $Inbound = Get-MgAuditLogSignIn -Filter ("CrossTenantAcce …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Invalid filter clause: Could not find a property named 'CrossTenantAccessType' on type 'microsoft.graph.signIn'. Status: 400 (BadRequest) ErrorCode: BadRequest Date: 2023-10-30T22:26:54 Headers: Transfer-Encoding : chunked Vary
| : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : a63d4b90-cb52-4f22-b4fc-268d6327f702 client-request-id : c960af69-b3d7-4684-ad4d-43bd74edaa15 x-ms-ags-diagnostic :
| {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"AM2PEPF0000BE03"}} Date : Mon, 30 Oct 2023 22:26:54 GMT
WARNING: 23.26.54 - No sign-ins matching the selected criteria found.
Graph API v1.0 properties
Name
----
AdditionalProperties
AppDisplayName
AppId
AppliedConditionalAccessPolicies
ClientAppUsed
ConditionalAccessStatus
CorrelationId
CreatedDateTime
DeviceDetail
Id
IPAddress
IsInteractive
Location
ResourceDisplayName
ResourceId
RiskDetail
RiskEventTypes
RiskEventTypesV2
RiskLevelAggregated
RiskLevelDuringSignIn
RiskState
Status
UserDisplayName
UserId
UserPrincipalName
Graph API beta properties
Get-MgBetaAuditLogSignIn | Get-Member -MemberType Properties | ft Name
Name
----
AdditionalProperties
AppDisplayName
AppId
AppliedConditionalAccessPolicies
AppliedEventListeners
AppTokenProtectionStatus
AuthenticationAppDeviceDetails
AuthenticationAppPolicyEvaluationDetails
AuthenticationContextClassReferences
AuthenticationDetails
AuthenticationMethodsUsed
AuthenticationProcessingDetails
AuthenticationProtocol
AuthenticationRequirement
AuthenticationRequirementPolicies
AutonomousSystemNumber
AzureResourceId
ClientAppUsed
ClientCredentialType
ConditionalAccessStatus
CorrelationId
CreatedDateTime
CrossTenantAccessType <--- USED IN FILTER
DeviceDetail
FederatedCredentialId
FlaggedForReview
HomeTenantId
HomeTenantName
Id
IncomingTokenType
IPAddress
IPAddressFromResourceProvider
IsInteractive
IsTenantRestricted
Location
ManagedServiceIdentity
MfaDetail
NetworkLocationDetails
OriginalRequestId
OriginalTransferMethod
PrivateLinkDetails
ProcessingTimeInMilliseconds
ResourceDisplayName
ResourceId
ResourceServicePrincipalId
ResourceTenantId
RiskDetail
RiskEventTypesV2
RiskLevelAggregated
RiskLevelDuringSignIn
RiskState
ServicePrincipalCredentialKeyId
ServicePrincipalCredentialThumbprint
ServicePrincipalId
ServicePrincipalName
SessionLifetimePolicies
SignInEventTypes
SignInIdentifier
SignInIdentifierType
SignInTokenProtectionStatus
Status
TokenIssuerName
TokenIssuerType
UniqueTokenIdentifier
UserAgent
UserDisplayName
UserId
UserPrincipalName
UserType
from msidentitytools.
Related Issues (20)
- get-msidunmanagedExternaluser Unable to find type [Microsoft.Graph.PowerShell.Models.MicrosoftGraphUser1] HOT 2
- Get-MsIdUnmanagedExternalUser, Does not check of Permission HOT 1
- Check for dependencies and import required modules if not already present HOT 1
- Update wiki (deprication, addition) HOT 1
- Get-MsIdGroupWritebackConfiguration : Additional scope needed HOT 4
- Wiki table broken HOT 1
- Get-MsIdUnmanagedExternalUsers not handling missing property HOT 1
- bug with scope filter of mggraph? HOT 2
- Change cmdlet name - Get-MsIdUnmanagedExternalUsers HOT 1
- The term 'Get-MgServicePrincipalCount' is not recognized as the name of a cmdlet," HOT 1
- Error thrown when executing Export-MsIdAppConsentGrantReport after the module update. HOT 3
- Unable to execute Find-MsIdUnprotectedUsersWithAdminRoles
- Export-MsIdAppConsentGrantReport HOT 2
- Example 1 Typo in Export-MsIdAppConsentGrantReport wiki HOT 1
- Error after running Export-MsIdAppConsentGrantReport HOT 2
- Get-MsIdInactiveSignInUser fails to "Find-MgGraphCommand: 'Get-MgUser'" HOT 5
- The property 'State' cannot be found on this object. Verify that the property exists. HOT 3
- Move FederationMetadata.format.ps1xml to internal HOT 1
- Get-MsIdCrossTenantAccessActivity returns invalid filter clause HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msidentitytools.