Skip to content

Commit

Permalink
Setting visibility back to public.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Nov 13, 2023
1 parent 27746c1 commit 6677192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/azure_active_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_aad_group(group_name, description, user_id, access_token, dry_run=Fal
"mailEnabled": False,
"mailNickname": group_name.replace(" ", "").lower(),
"securityEnabled": False, # Unified groups are not security groups
"visibility": "Private", # Setting the group as a private group
# "visibility": "Private", # Setting the group as a private group
}

# If dry_run is enabled, we skip the actual creation process
Expand All @@ -46,6 +46,7 @@ def create_aad_group(group_name, description, user_id, access_token, dry_run=Fal
flash("User added as an admin to the group successfully!", "success")
else:
flash("Failed to add the user as an admin to the group.", "error")
print("Failed to add the user as an admin to the group.", "error")
else:
flash(
"Group was created but user could not be added as an admin.", "warning"
Expand Down

0 comments on commit 6677192

Please sign in to comment.