CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can CiviMail be access-controlled?
Pages: [1]

Author Topic: Can CiviMail be access-controlled?  (Read 1823 times)

outinsun

  • Guest
Can CiviMail be access-controlled?
September 15, 2008, 01:05:40 pm
I would like to set up CiviMail so that only members of certain groups can use it, and so they can only see their own group's mailings in schedules and reports. I'd also like them only to be able to see certain target groups when creating a mailing. For extra credit they should only see a subset of the available templates. Are any of these possible?

Finally, just to pile on multiple questions into one posting, I'm unclear whether CiviMail can be driven via API. I see references to a SOAP interface, but can't find any details.

TIA.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can CiviMail be access-controlled?
September 15, 2008, 04:59:44 pm

You should read up on CiviCRM ACL's. Basically this can be driven by restricting what groups a set of users / contacts can see, which in turn restricts the mailings they can see etc

there is no acl support for templates

parts of civimail can be driven by the API, but this is mainly restricted to features like subscribe/unsubscribe/optout etc. There is no API to send an email etc, but a contribution to do so would be great :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

outinsun

  • Guest
Re: Can CiviMail be access-controlled?
September 16, 2008, 08:27:17 am
Quote from: Donald Lobo on September 15, 2008, 04:59:44 pm

You should read up on CiviCRM ACL's. Basically this can be driven by restricting what groups a set of users / contacts can see, which in turn restricts the mailings they can see etc
Sounds good. I am reading up on various aspects of CiviCRM, and still learning which parts are shared with core and which parts are specific to CiviMail and other modules.

Quote
there is no acl support for templates

parts of civimail can be driven by the API, but this is mainly restricted to features like subscribe/unsubscribe/optout etc. There is no API to send an email etc, but a contribution to do so would be great :)
If I can control which groups a sender can see, and which sent email reports they can see (based on the group the mail was sent to), I may not need an API. But it might be useful for other reasons, in which case I will happily build and contribute. I will probably end up at least adding ACL support for templates.

outinsun

  • Guest
Re: Can CiviMail be access-controlled?
September 16, 2008, 01:08:49 pm
Quote from: outinsun on September 16, 2008, 08:27:17 am
If I can control which groups a sender can see, and which sent email reports they can see (based on the group the mail was sent to), I may not need an API.
Well, rats. After further experimentation, I'm not sure this will work for me after all. I need senders to be able to send to the same group of recipients, but not see each others' mailings. I am starting to see a CiviMail API in my future after all.

outinsun

  • Guest
Re: Can CiviMail be access-controlled?
September 18, 2008, 01:18:24 pm
Quote from: outinsun on September 16, 2008, 01:08:49 pm
Quote from: outinsun on September 16, 2008, 08:27:17 am
If I can control which groups a sender can see, and which sent email reports they can see (based on the group the mail was sent to), I may not need an API.
Well, rats. After further experimentation, I'm not sure this will work for me after all. I need senders to be able to send to the same group of recipients, but not see each others' mailings. I am starting to see a CiviMail API in my future after all.
For the time being, I can get by if I can restrict access to the mail reports page (civicrm/mailing) to a select administrative group, and let all the sending groups access civicrm/mailing/send only. Any suggestions on how to do that?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can CiviMail be access-controlled?
September 18, 2008, 01:58:02 pm

You'll have to hack the code and add in permissioning to assign different permissioning string to the two urls. In 2.1 you can do part of this in the xml menu files (templates/Menu/Mailing.xml). You'll also need to add another drupal permission CRM/Core/Permission.php, function basicPermissions( )

hop onto IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) and ask questions etc if / when needed :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

outinsun

  • Guest
Re: Can CiviMail be access-controlled?
September 18, 2008, 01:59:29 pm
Quote from: Donald Lobo on September 18, 2008, 01:58:02 pm

You'll have to hack the code and add in permissioning to assign different permissioning string to the two urls. In 2.1 you can do part of this in the xml menu files (templates/Menu/Mailing.xml). You'll also need to add another drupal permission CRM/Core/Permission.php, function basicPermissions( )

hop onto IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) and ask questions etc if / when needed :)

lobo

ok, thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can CiviMail be access-controlled?

This forum was archived on 2017-11-26.