HuduAutomation
HuduAutomation copied to clipboard
Hudu-ADGroups-Documentation tagged users not working
Hi, doesnt seem like tagged users is working, im running hudu vers: 2.1.5.7 and huduapi vers 1.22, might be broken with updates? If i run $contacts or "(get-huduassets -assetlayoutid $ContactsLayout.id -companyid $Company.id) | Where-Object {$_.primary_mail -eq $($email)} | select id, name" It finds the users, so the matching is working, but it does not add it to the tagged users field in the asset. else the script is working great! https://github.com/lwhitelock/HuduAutomation/blob/main/CyberdrainRewrite/Hudu-ADGroups-Documentation.ps1
I expanded on the information, and I found the cause and a work around for the tagging not working. My script is here https://github.com/dehcbad25/HuduScripts/blob/main/HUDU-ADGroups-Documentation.ps1 The reddit where I started working on it is here https://www.reddit.com/r/hudu/comments/15fp6dj/need_a_little_help_working_with_assetfields_using/ Basically, the format that AD presents is different from what Hudu uses. Converto-Json cleans it up quite a bit, but it is still not the format needed, so I went plain string, and concatenated the text in the format required by Hudu.