Forum Discussion

TS-noodlemctwoodle's avatar
TS-noodlemctwoodle
Brass Contributor
Jul 19, 2021
Solved

Split userPrincipalName in Azure Sentinel Playbook

Please could someone give me some pointers on how I can split a userPrincipalName from mailto:user.name@doamin.com to user.name?   Essentially I want to extract everything before the '@' symbol.  ...
  • TS-noodlemctwoodle's avatar
    TS-noodlemctwoodle
    Jul 20, 2021

    GaryBushey 

     

    Thanks for the pointers, this is the working Expression.

     

    split(triggerBody()?['object']?['properties']?['owner']?['userPrincipalName'], '@domain.com')[0]

Resources