Skip to content
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

[BUG] MDE - Links to entities are broken #438

Closed
piaudonn opened this issue Nov 16, 2023 · 2 comments
Closed

[BUG] MDE - Links to entities are broken #438

piaudonn opened this issue Nov 16, 2023 · 2 comments
Assignees
Labels
bug Something isn't working module/mde Microsoft Defender for Endpoint Module

Comments

@piaudonn
Copy link
Collaborator

piaudonn commented Nov 16, 2023

When the MDE module generates a link to anentity, it adds a trailing backslash. It used to work originally, but now, it makes the browsing experience navigating to the main Defender portal instead of the entity.

"value": "@{if(not(equals(item()['UserPrincipalName'], '')), concat('<a href=\"https://security.microsoft.com/user/?aad=',item()['UserId'],'&tid=',body('Parse_JSON')?['TenantId'],'\" target=\"_blank\">',item()['UserPrincipalName'],'</a>'), item()['UserSid'])} @{if(equals(length(items('For_each_DetailedResultsAccounts')['UserDevices']),0),' - No devices found',body('Create_table_for_Machines')[0])} <br />"

"value": "<a href=\"https://security.microsoft.com/machines/@{item()?['id']}?tid=@{body('Parse_JSON')?['TenantId']}\" target=\"_blank\">@{item()?['id']}</a>"

Fix should be :

... https://security.microsoft.com/user?aad= ...
... https://security.microsoft.com/machine?aad= ...

Thanks to Damon for reporting it.

@piaudonn piaudonn added bug Something isn't working module/mde Microsoft Defender for Endpoint Module labels Nov 16, 2023
@piaudonn piaudonn self-assigned this Nov 16, 2023
piaudonn referenced this issue in briandelmsft/STAT-Function Nov 19, 2023
@piaudonn
Copy link
Collaborator Author

Actually, I don't think the machine needs a fix. Only the users. Needs to confirm.

@piaudonn
Copy link
Collaborator Author

Addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module/mde Microsoft Defender for Endpoint Module
Projects
None yet
Development

No branches or pull requests

1 participant