Graph API
2 TopicsThe property is missing a required prefix/suffix per your organization's Group naming requirements
Hello All, My Organization enabled 'Group naming policy' in Azure AD. Current Policy: <Group name>(<Company>) It works perfectly when I try to create new teams through Teams App but We are facing issue when I try to create a Teams through CSOM based provisioning jobs. We are appending the Company Name suffix to the group name like below Ex. TestTeam(CompanyName) But still it is throwing below error: Code: Request_BadRequest Message: The property is missing a required prefix/suffix per your organization's Group naming requirements. Details: Detail0: Code: MissingPrefixSuffix Target: displayName AdditionalData: suggestedPropertyValue : sid-12-18-2021(MyCompany)() Inner error: AdditionalData: date: 2020-12-18T06:08:56 request-id: 2d495a06-22d7-4d6b-a92a-1e1ad24e2193 client-request-id: 2d495a06-22d7-4d6b-a92a-1e1ad24e2193 ClientRequestId: 2d495a06-22d7-4d6b-a92a-1e1ad24e2193 Code snippet I am referring below: UnifiedGroupEntity unifiedGroupEntity = UnifiedGroupsUtility.CreateUnifiedGroup(unifiedGroupInformation.DisplayName, unifiedGroupInformation.Description, unifiedGroupInformation.MailNickname, accessToken, unifiedGroupInformation.Owners, null, true, true, 10, 500); Thanks. BR. Sid4.9KViews0likes2CommentsUse Access token to save comment on SharePoint news
I want to use access token from Graph API into SharePoint REST API to save comment on SharePoint News I have tried to get the access token using Azure Active Directory Sign In then after I have used that token in SharePoint REST API. But it throws an error with Status Code 401: Unauthorized. Can anyone please let me know that can we use graph API access token in SharePoint REST API? If yes then how can we use and if not then any alternative way? Thanks801Views0likes0Comments