User Profile
supportsib
Brass Contributor
Joined 6 years ago
User Widgets
Recent Discussions
Onedrive permission
Hi, I tried the below to give permission on USERA's folder (Testa) in one drive to USERB Set-PnPListItemPermission -List 'Documents' -Identity 1 -User 'userb@contoso.com' -RemoveRole 'Contribute' Permission applied successfully on the drive but the USERB cannot see in his onedrive "under shared with you " but if he searches the folder by the name Testa then he can see How to fix this Thanks766Views0likes0Commentsbulk team creation
Hi, I have a CSV file(teamname,owner,members) for bulk team creation How can I do it using graph API $tokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$tenantID/oauth2/v2.0/token" -Method POST -Body $tokenBody $headers = @{ "Authorization" = "Bearer $($tokenResponse.access_token)" "Content-type" = "application/json" } write-host $headers.Authorization #Get Owner ID $URLOwnwer = "https://graph.microsoft.com/v1.0/users/$Owner" $ResultOwner = Invoke-RestMethod -Headers $headers -Uri $URLOwnwer -Method Get #Create Teams $BodyJsonTeam = @" { "template@odata.bind":"https://graph.microsoft.com/v1.0/teamsTemplates('standard')", "displayName":"$TeamName", "description":"$TeamDescription", "members":[ { "@odata.type":"#microsoft.graph.aadUserConversationMember", "roles":[ "owner" ], "user@odata.bind":"https://graph.microsoft.com/v1.0/users/$($ResultOwner.id)" } ] } "@ $URLTeam = "https://graph.microsoft.com/v1.0/teams" Invoke-RestMethod -Headers $headers -Uri $URLTeam -Method POST -Body $BodyJsonTeam Please help715Views0likes0Commentsgraph api -iterate
Hi, I have a CSV file for bulk team creation, How can I do it using graph API $tokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$tenantID/oauth2/v2.0/token" -Method POST -Body $tokenBody $headers = @{ "Authorization" = "Bearer $($tokenResponse.access_token)" "Content-type" = "application/json" } write-host $headers.Authorization #Get Owner ID $URLOwnwer = "https://graph.microsoft.com/v1.0/users/$Owner" $ResultOwner = Invoke-RestMethod -Headers $headers -Uri $URLOwnwer -Method Get #Create Teams $BodyJsonTeam = @" { "template@odata.bind":"https://graph.microsoft.com/v1.0/teamsTemplates('standard')", "displayName":"$TeamName", "description":"$TeamDescription", "members":[ { "@odata.type":"#microsoft.graph.aadUserConversationMember", "roles":[ "owner" ], "user@odata.bind":"https://graph.microsoft.com/v1.0/users/$($ResultOwner.id)" } ] } "@ $URLTeam = "https://graph.microsoft.com/v1.0/teams" Invoke-RestMethod -Headers $headers -Uri $URLTeam -Method POST -Body $BodyJsonTeam Please help612Views0likes0Comments400 Bad request
Hi, $oauthUri = "https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token" # Create token request body $tokenBody = @{ client_id = $graphApiDemoAppId client_secret = $graphApiDemoAppSecret scope = "https://graph.microsoft.com/.default" grant_type = "client_credentials" } $tokenRequest = Invoke-RestMethod -Uri $oauthUri -Method POST -ContentType "application/x-www-form-urlencoded" -Body $tokenBody -UseBasicParsing $accessToken = ($tokenRequest).access_token $headers = @{ "Authorization" = "Bearer $accessToken" "Content-type" = "application/json" } $teambody = '{ "displayName": "Architecture Team1", "description": "The team for those in architecture design.", "template@odata.bind" : [ "https://graph.microsoft.com/v1.0/teamsTemplates(''standard'')" ], }' Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/teams" -Method POST -Headers $headers -Body $teambody I am getting 400 bad request error if I try to create user , teams.groups ,... And If I use any GET method it is working fine Please ad1.1KViews0likes0Commentsusername and password in script
Hi, I want to schedule a ps script to run every 20 minutes. How to pass username and password securely. The account is a 0365 account, and the pc where the script is running is not joined to the domain. So when running the task which user account I should use in the task scheduler (The purpose the script is to create teams automatically ) Thanks2.9KViews0likes2Commentschat: post meeting access
Hi, The recent update from Microsoft that only the people included in the meeting invite will have access to chat post-meeting. if users need access to the chat, then they have to be added to the meeting invite. Let's say if there are more than 50 attendees in a recurring meeting ( I don't want to create a team for them ) , How can I avoid adding them one by one as attendees (Before I used to create an open meeting link ) Thanks1.1KViews0likes1CommentRe: Group calendar on modern pages (communication site)
Hi , I tried the calendar https://ganeshsanapblogs.wordpress.com/2021/01/15/add-modern-calendar-to-a-sharepoint-online-page/ if there is more than one or two items ,calendar does not show the "Title " instead it shows "2 more " or "1 more " Any solution Thanks9KViews0likes1Commentsharepoint -beginners question
I need a simple SharePoint site. The purpose is to display the calendar and give the visitor access to most of the users and add few users as owners here are my questions Do I need a hub site? Which site is the preferred team or communication site? Is it possible to remove the left navigation? How to block members from adding other members Thanks1.2KViews0likes3Comments
Recent Blog Articles
No content to show