Just curious has anyone automated to use the REST api end point to create a role, set the filters and assign the users? I have found the end points for adding users to an existing one but nothing that actually will create the role w/the filter. I was trying to use an endpoint like this but no luck. Hoping there is one out there and I just can't find it.
headers = {
"Authorization": f"Bearer {access_token}",
"Content-Type": "application/json"
}
response = requests.post(api_url, headers=headers, json=new_role)