Applies policy settings to multiple group administrators.
users = ['first_name.last_name','first_name.last_name']
# Customer admin account
policy = {
"profileAccess": "Read-Only",
"userAccess": "Full Profile",
"adminAccess": "Read-Only",
"departmentAccess": "Full",
"accessDeviceAccess": "Read-Only",
"enhancedServiceInstanceAccess": "Modify-Only",
"featureAccessCodeAccess": "Read-Only",
"phoneNumberExtensionAccess": "Read-Only",
"callingLineIdNumberAccess": "Full",
"serviceAccess": "Read-Only",
"trunkGroupAccess": "Read-Only Resources",
"sessionAdmissionControlAccess": "Read-Only",
"officeZoneAccess": "Read-Only",
"numberActivationAccess": "None",
"dialableCallerIDAccess": "Full"
}
my_api.post.group_admin_policies_bulk(
user_ids=[user+group_domain for user in users],
policy_config=policy
)
{
"users": [
{
"userId": "first_name.last_name"
},
{
"userId": "first_name.last_name"
}
],
"data": {
"profileAccess": "Read-Only",
"userAccess": "Full Profile",
"adminAccess": "Read-Only",
"departmentAccess": "Full",
"accessDeviceAccess": "Read-Only",
"enhancedServiceInstanceAccess": "Modify-Only",
"featureAccessCodeAccess": "Read-Only",
"phoneNumberExtensionAccess": "Read-Only",
"callingLineIdNumberAccess": "Full",
"serviceAccess": "Read-Only",
"trunkGroupAccess": "Read-Only Resources",
"sessionAdmissionControlAccess": "Read-Only",
"officeZoneAccess": "Read-Only",
"numberActivationAccess": "None",
"dialableCallerIDAccess": "Full"
}
}