mirror of
https://github.com/Set-OutlookSignatures/Set-OutlookSignatures.git
synced 2026-04-26 10:45:52 +03:00
[GH-ISSUE #102] User query LDAP successfully but still get a message about graph and tokens. #40
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fpsacha on GitHub (Mar 8, 2024).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/102
I am deploying the tool on a couple of test PC without any issue. We have a local AD and all the PC can do the ldap query correctly. Signatures are working fine. But i have 1 user that is trying to connect to Graph and i am not sure why.
usually after the line : Currently logged-in user, i get the logged on user and the manager and the script continue. But this user get a message about the graph token and it open a webpage to use the Enterprise Apps. I do not want to use MS-Graph but it only does this on this one user.
What am i missing ?
@GruberMarkus commented on GitHub (Mar 8, 2024):
At least one of the following conditions is met:
$GraphOnly -eq $trueRather not, because the excerpt shows that on-prem AD domains are queried
($GraphOnly -eq $false) -and ($ADPropsCurrentUser.msexchrecipienttypedetails -ge 2147483648) -and (($SetCurrentUserOOFMessage -eq $true) -or ($SetCurrentUserOutlookWebSignature -eq $true)))Possible. Please check the value of the
msexchrecipienttypedetailsAD attribute of the user.($GraphOnly -eq $false) -and ($null -eq $ADPropsCurrentUser)Possible, but unlikely. Can only be answered when you provide the full verbose output of Set-OutlookSignatures.
$OutlookUseNewOutlook -eq $truePossible. Can only be answered when you provide the full verbose output of Set-OutlookSignatures.
@fpsacha commented on GitHub (Mar 8, 2024):
I just had a look and this user is the only one with a string in the attribute msExchRecipientDisplayType
2147483648
That would explain it !
@GruberMarkus commented on GitHub (Mar 8, 2024):
That value indicates that the mailbox is in Exchange Online/Office 365/Microsoft 365.
As you also want to set the signature in Outlook Web and/or set an out-of-office reply, a Graph connection is required to get an access token for the mailbox.
The value for msexchrecipienttypedetails might not be correct, though. This may happen when using 3rd party tools etc, as they often are not careful enough about the meaning of these values.
Please let me know if this issue can be closed as successfully resolved.
@fpsacha commented on GitHub (Mar 11, 2024):
Thanks for the info ! We are going to try to clean that up internally. You can close this. Thank you again.