I have an external source of “Customers”, when making automations and dashboards etc for these groups of customers, id like them to be able to see data/logs/status of stuff we make for them.
To acomplish this they need to be assigned a role and tag as far as i know.
There doesn’t seem to be built in functions for this - Adding logic to Roles.ps1 and Tags.ps1 will eventually be replaced by PSU.
Right now it seems that simply appending string to the conf files is the only solution, any other solution are welcome - I also need ideas to how I would go about removing the Roles and tags related to a costumer if needed.
My current idea is to grab the database of customers, and check if a role exist with the same name (CustomerID_0001 fx)
If they exist, use Set-PSUTag or set-PSURole to update their description if neede
You could include this logic in read-only regions within role.ps1 and tags.ps1. Then PSU won’t replace it when you make updates in the console. The roles and tags you generate should also be readonly in the console.