@KillxxxKam Its possible that the restrictions you are trying to push are only supported with supervised devices i.e. devices enrolled via DEP.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.