I was trying to assigning a new Users to CiviCRM ACL role through ACL Role API, but it is not showing me in database.
Input json
$result = civicrm_api3('AclRole', 'create', [
'debug' => 1,
'sequential' => 1,
'acl_role_id' => 14,
'entity_table' => "civicrm_group",
'entity_id' => 54,
'is_active' => 1,
]);
Output json
"values": [
{
"id": "14",
"acl_role_id": "",
"entity_table": "civicrm_group",
"entity_id": "54",
"is_active": "1"
}
]
I already providing a "acl_role_id", but in the output json object, it is showing a blank