Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-450

Make it possible to get a list of emails from a group and clarify the scripting functions in this domain

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.1
    • Component/s: None

      Description

      Currently, if I need to notify a list of people in a group using automation, the only trick I found is to assign a permission to this group on a document, and then call "GetPrincipalEmails" giving the permission I assigned (which I made sure was not an existing one for real, so as to be sure to get back only the group I specified).

      This is obviously not ok, and I think that we should have,overall:

      • operations:
        • GetUsersAndGroupsForPermission (same as the one currently not nicely called "GetUsersAndGroups"). It would return Principals, with ability to resolve groups as for today
      • Scripting functions:
        • List<String>getEmails(List<Principal>)
        • String getEmail(Principal)
      • these 2 functions are not needed:
        1. the first one is already existing: List<String> getPrincipalEmails(List<Principal>)
        2. for the second one you can simply use "principal.email"
        • List<Principal> getPrincipalsFromGroup(String group)

      With this, I'll be able to cover the following usecases:

      • Assign tasks to some users having a specific permission on a docuemnt
      • Assign tasks to some hardcoded groups

      and notify everybody by email when I need, without having to use some weird tricks

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: