Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Disable sending emails to Participants team #32

Open
vpchung opened this issue Jun 12, 2024 · 0 comments
Open

[feat] Disable sending emails to Participants team #32

vpchung opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@vpchung
Copy link
Member

vpchung commented Jun 12, 2024

Describe The Problem To Be Solved

We have had a couple of instances where a participant would email the entire Challenge Participants team (>500 people), asking a question that should be more geared towards the organizers or Discussion forum instead. Though there is an option on the web portal to disable sending messages:

Screenshot 2024-06-12 at 11 12 02 AM

it does not prevent users already in the team from sending a message.

Ideally, we should make it so that members (other than team managers) cannot send a mass email. I can see this feature being utilized when the Participants team is first created (using the create-challenge command) as well as a standalone function so that it can be called with any team.

(optional) Suggest a Solution

"Hacky" solution I've been using:

import json
team_id = 123  # <-- update this value 
acl = syn.restGET(f"/team/{team_id}/acl")
for member in acl.get('resourceAccess'):
    if member.get("principalId") == team_id:
        member["accessType"] = ['READ']
        break
syn.restPUT("/team/acl", json.dumps(acl))
@vpchung vpchung added the feature New feature or request label Jun 12, 2024
@vpchung vpchung self-assigned this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant