I have a need to create programmatically (from a csv) a complete ACL structure. In detail for each csv line i need to create
- the CMS user (Joomla) with a specific role
- the connected contact
- the connected group
- all the 3 ACL record (ACL, Roles and User assignments)
I'm using CiviCRM 4.7.24 and Joomla, I'm thiking to utilize API.
Questions:
is the API the right approach or it's better to write directtly into DB?
which APIs to use for each of the archives above?
Thank's