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

Hudu-ADGroups-Documentation tagged users not working #13

Open
kikkn opened this issue Oct 23, 2021 · 1 comment
Open

Hudu-ADGroups-Documentation tagged users not working #13

kikkn opened this issue Oct 23, 2021 · 1 comment

Comments

@kikkn
Copy link

kikkn commented Oct 23, 2021

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

@dehcbad25
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants