timmcmic / DLConversionV2

MIT License
43 stars 9 forks source link

Start-MultipleDistributionListMigration is failing #152

Closed lsborroto closed 3 months ago

lsborroto commented 7 months ago

I am running the Start-MultipleDistributionListMigration, btu it stills failing. DLBatch1.log DLBatch2.log

timmcmic commented 7 months ago

The graph application that you're using lacks sufficient scopes to do the work required.

I would manually connect with graph and the cert information - specify the scopes read.users.all and read.groups.all and consent.

Tim

From: lsborroto @.> Sent: Tuesday, November 14, 2023 12:11 PM To: timmcmic/DLConversionV2 @.> Cc: Subscribed @.***> Subject: [timmcmic/DLConversionV2] Start-MultipleDistributionListMigration is failing (Issue #152)

I am running the Start-MultipleDistributionListMigration, btu it stills failing. DLBatch1.loghttps://github.com/timmcmic/DLConversionV2/files/13352209/DLBatch1.log DLBatch2.loghttps://github.com/timmcmic/DLConversionV2/files/13352213/DLBatch2.log

- Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/152, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6IT2YUD7OIBVSXMST3YEOQ3BAVCNFSM6AAAAAA7LE4HEWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TGMJYGA3TKMI. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

lsborroto commented 7 months ago

I already provided the permissions and also recreate the certificate, but I still with the same issue. I am running: DLBatch1.log Start-MultipleDistributionListMigration -groupSMTPAddresses $groups -globalCatalogServer $ser -activeDirectoryCredential $cred -logFolderPath c:\temp33 -aadConnectServer $ser -aadConnectCredential $cred -exchangeOnlineCredential $cloudCred -dnNoSyncOU "OU=NoSync,DC=ftc365,DC=local"

image
lsborroto commented 7 months ago

I run get-MgContext and the Scopes are empty.

timmcmic commented 7 months ago

So if you make the connection manually using this same information - and specifying the scopes required - you are not prompted to consent?

From: lsborroto @.> Sent: Tuesday, November 14, 2023 1:47 PM To: timmcmic/DLConversionV2 @.> Cc: Tim McMichael @.>; Comment @.> Subject: Re: [timmcmic/DLConversionV2] Start-MultipleDistributionListMigration is failing (Issue #152)

I already provided the permissions and also recreate the certificate, but I still with the same issue. I am running: DLBatch1.loghttps://github.com/timmcmic/DLConversionV2/files/13354326/DLBatch1.log Start-MultipleDistributionListMigration -groupSMTPAddresses $groups -globalCatalogServer $ser -activeDirectoryCredential $cred -logFolderPath c:\temp33 -aadConnectServer $ser -aadConnectCredential $cred -exchangeOnlineCredential $cloudCred -dnNoSyncOU "OU=NoSync,DC=ftc365,DC=local" [image]https://user-images.githubusercontent.com/59449977/282883104-cc8ce766-3155-4cc4-af4a-b9ea41342b8b.png

- Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/152#issuecomment-1810936127, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6IYSRB4ZZDUBX2GJYLYEO4DPAVCNFSM6AAAAAA7LE4HEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQHEZTMMJSG4. You are receiving this because you commented.Message ID: @.**@.>>

lsborroto commented 7 months ago

Sorry I don't known how to make it? I used: Connect-MgGraph -TenantId "tenant" -AppId "app" -CertificateThumbprint "cert"

timmcmic commented 7 months ago

Add -scopes {Read.user.all,read.groups.all}

From: lsborroto @.> Sent: Tuesday, November 14, 2023 2:11 PM To: timmcmic/DLConversionV2 @.> Cc: Tim McMichael @.>; Comment @.> Subject: Re: [timmcmic/DLConversionV2] Start-MultipleDistributionListMigration is failing (Issue #152)

Sorry I don't known how to make it? I used: Connect-MgGraph -TenantId "tenant" -AppId "app" -CertificateThumbprint "cert"

- Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/152#issuecomment-1811012063, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6MICMHCIJBIVJMGDMDYEO66BAVCNFSM6AAAAAA7LE4HEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJRGAYTEMBWGM. You are receiving this because you commented.Message ID: @.**@.>>

lsborroto commented 7 months ago

Connect-MgGraph -TenantId "tenant" -AppId "app" -CertificateThumbprint "cert" -scopes {Read.user.all,read.groups.all} At line:1 char:200