Giter Club home page Giter Club logo

Comments (5)

rgbartlett avatar rgbartlett commented on July 3, 2024

+1 from me, previously reported on Mastodon, I should have logged an issue, sorry.

from msidentitytools.

viperthunder avatar viperthunder commented on July 3, 2024

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.

muddermanden avatar muddermanden commented on July 3, 2024

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.

  1. Clone the repo
  2. Open the vscode workspace
  3. Open the Get-MsIdCrossTenantAccessActvitity.ps1
  4. Replace all occurences of Get-MgAuditLogSignIn with Get-MgBetaAuditLogSignIn
  5. Open Test-MgCommandPrerequisites.ps1
  6. 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.

merill avatar merill commented on July 3, 2024

Can you try with the latest published certain? Tx

from msidentitytools.

muddermanden avatar muddermanden commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.