Skip to content

Commit e1fdc9b

Browse files
Modified create_or_get_group Function. Added the mailEnabled and mailNickname properties.
1 parent cc74772 commit e1fdc9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/adlsgen2setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ async def create_or_get_group(self, group_name: str):
135135
logging.info(f"Could not find group {group_name}, creating...")
136136
group = {
137137
"displayName": group_name,
138-
"groupTypes": ["Unified"],
138+
"mailEnabled": False, # Set mailEnabled to False
139+
"mailNickname": group_name,
139140
"securityEnabled": self.security_enabled_groups,
140141
}
141142
async with session.post("https://graph.microsoft.com/v1.0/groups", json=group) as response:

0 commit comments

Comments
 (0)