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
- depends on
-
NXP-6675 Update CreateRelation and user related operations
- Resolved