Hi All, I have a site "/projects" with a lot of subsites (Projects), on every subsite is a list ProjectTeam, which have field "Name" (type ="user") and field "Rolle" (value like "projectsponsor" or "projectowner"). Every project has own groups (project01_sponsor or project01_owner). When item will be added to list, then person will must be added automatically to appropriate group (if field Rolle = projectsponsor, person will be added to group named "project01_sponsor" etc.). And if item will be deleted from list, person from group must be deleted too.
What solution will be the best in this case?
It can be called manually by user, for example, via the custom confirmation button which call a JavaScript function. I prefered solving this in JavaScript.
I thinking about write an app and develop through app stapling to every project site. But issue is how call app from list, add button in column, add custom action to list? This is must be easy to implement, because there are a lot of projects on the site.
I'm asking for any advice, maybe a completely different solution of the problem.
Sorry about my English.