Open dmpai-per opened 1 week ago
I was getting the same issue earlier . I resolved it by adding the below 2 lines in the _create_or_getgroup method . In your create_or_get_group method, when you're constructing the group object before making the POST request to create the group, you need to add the mailEnabled property. Additionally, the mailNickname property is required for groups that have mailEnabled set to true
Original snippet code :-
group = {
"displayName": group_name,
"groupTypes": ["Unified"],
"securityEnabled": self.security_enabled_groups,
}
Add the below 2 lines in this one .
"mailEnabled": False, # Set to True if the group should have a mailbox
"mailNickname": group_name.replace(" ", "_") # Provide a mailNickname, even if mailEnabled is False_
Modified snippet code :-
group = {
"displayName": group_name,
"groupTypes": ["Unified"],
"securityEnabled": self.security_enabled_groups,
"mailEnabled": False, # Add mailEnabled property
"mailNickname": group_name.replace(" ", "_") # Add mailNickname
}
However, after modifyng this code if you are still encountering error like "_AuthorizationRequestDenied: Tenant admin has not enabled Unified Group creation" , just comment out the below line :-
# "groupTypes": ["Unified"],
Hopefully it should work.
@samarjit4290 thanks it is working now.
@dmpai-per You can find the groups in Azure portal directly if you have access to Entra ID (Azure Active Directory). Since you were able to create the groups , I assume you already have access to Entra ID and can view the groups as well . 👍
@samarjit4290 actually i am using MS Entra ID External (this feature here https://github.com/Azure-Samples/azure-search-openai-demo/issues/1959) so i am not quite sure how to add the external users from the external tenant to the new created groups in the tenant that has the storage account.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Versions
Mention any other details that might be useful