Hi Fredrick,
Not an easy one but there are few points and process you can follow if using SCCM, I have done it via GPO but it was long back and I had used some of the notes from this thread and later I changed to user based
https://www.reddit.com/r/SCCM/comments/uj1mpc/sccm_and_machine_wide_teams_update/
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.