User Profile
Rohit404404
Brass Contributor
Joined 8 years ago
User Widgets
Recent Discussions
Re: Microsoft Lists UI in SharePoint List UI instead of modern SPO UI
Unfortunately no. We convinced end user that they are few of the lucky ones to get latest MS list style. Unable to figure out any pattern. Some users see same list in Modern list style while others see it in MS list style. Also, few lists from same site collection open in Modern list style while others are MS List .11KViews0likes0CommentsIs there a easier way to share MS form with multiple users
We have a MS form which needs to be shared with multiple users. I can manully enter email ID one by one and share those. However, we have 60 different emails (I know, not a lot still manual work) Cannot create Group email address just for this. I tried semicolon separated email IDs with no luck. is there any othe way?2KViews0likes2CommentsResponse receipts section missing from form setting
Hello I have New MS forms created (Both from respective user account and not group associated) In my developer tenant i can see response receipt section and hence can enable email notification . However, this whole section is missing from another production tenant. None of the Forms created have this options and hence can not enable email notification. Any idea why this might be happening? Does user license type plays a role here? Other two sections i.e. options for response and who can fill the form are available in both forms. Only last one is missing.5KViews1like6CommentsIs there any way to generate Sharing Link without breaking inheritance on file
Hello I had posted another question which i had posted here https://docs.microsoft.com/en-us/answers/questions/991989/create-sharing-link-using-csompnpframework.html?childToView=995490#comment-995490 We basically need unique link on document that does not change with a change in file location. While we got answer partly, it led to another question which is, is there any way to get sharing link of a document in SPO without breaking its inheritance. Basically to generate sharing link with option of "Peopke with existing access" ? Any way to have this by CSOM , Rest or Graph Api? There are couple of options in CSOM , Rest and Graph ApI (beta) ..however they all have option of anonymous or organization sharing link whi h caused breaking inheritance. We are going to gave large number of documents in library and unique permission will not help. https://docs.microsoft.com/en-us/graph/api/listitem-createlink?view=graph-rest-beta&tabs=http1.2KViews0likes2CommentsCreate Sharing Link using CSOM/PnP.Framework
We have a requirement of having Unique/Durable link of sharepoint file, which will be stored in SQL DB by Job Scheduler (exe app). Documents might be moved to different folders within a site hence absolute URL cannot be trusted. We have two options 1. Document ID service = Though its a good options, downside is, this service takes some time to generate Document ID (since timer job generates this) 2. Use Sharing option. We are exploring this option and came across this post where its answered how to generate sharing link from CSOM = https://docs.microsoft.com/en-us/answers/questions/84801/calling-the-sharelink-sharepoint-rest-api-endpoint.html We did try this code however we are always getting unauthorized. context object is generated from PnP. We need to use AppId and Secrete since its unattended scheduled job. Cred object is always showing null.. Any thoughts please? Digest value and Web title are correct. However, Cleint.Upload call fails. (since Cred is blanks). Can app ID/Secrete not work with this? using Microsoft.SharePoint.Client; using Newtonsoft.Json; using PnP.Framework; using System; using System.Net; namespace SP_ConsoleApp { class Program { static void Main(string[] args) { string siteUrl = "https://dsds.sharepoint.com/sites/devstuff"; string clientId = "6ab77591-088a-447a-b406-23aadf9ae721"; string clientSecret = "afopU4VxvYDigYXW8K7tLOWONsdsdst9x3GFKOvr0Ng05lSM="; //For SharePoint app only auth, the scope will be the SharePoint tenant name followed by /.default var scopes = new string[] { "https://dsds.sharepoint.com/.default" }; using (var cc = new PnP.Framework.AuthenticationManager().GetACSAppOnlyContext(siteUrl, clientId, clientSecret)) { cc.Load(cc.Web, p => p.Title); cc.ExecuteQuery(); Console.WriteLine(cc.Web.Title); var web = cc.Web; var dig = cc.GetFormDigestDirect(); cc.Load(web); cc.ExecuteQuery(); Console.WriteLine($"{web.Title}--{dig.DigestValue}"); ShareFile(cc, cc.Credentials as SharePointOnlineCredentials, dig.DigestValue); Console.ReadKey(); }; }//main private static void ShareFile(ClientContext context, SharePointOnlineCredentials creds, string digest) { try { string szRequestURL = @"https://dsds.sharepoint.com/sites/devstuff/_api/web/GetFileByUrl(@v)/ListItemAllFields/ShareLink?@v='/sites/devstuff/testLib/Document1.docx'"; string response = ""; using (var client = new WebClient()) { client.Credentials = creds; client.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f"); client.Headers.Add(HttpRequestHeader.ContentType, "application/json;odata=verbose"); client.Headers.Add(HttpRequestHeader.Accept, "application/json;odata=verbose"); client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0"); client.Headers.Add("X-RequestDigest", digest); var endpointUri = new Uri(szRequestURL); response = client.UploadString(szRequestURL, "{\"request\":{\"createLink\":true,\"settings\":{\"allowAnonymousAccess\":true,\"linkKind\":2,\"expiration\":null,\"restrictShareMembership\":false,\"updatePassword\":false,\"password\":\"\", \"description\":\"My description\", \"role\":8,\"applicationLink\":false,\"limitUseToApplication\":false}}}"); dynamic dynObj = JsonConvert.DeserializeObject(response); if (dynObj == null) { return; } string szURL = dynObj.d.ShareLink.sharingLinkInfo.Url.Value; Console.WriteLine("Sharing link: " + szURL); } } catch (Exception e) { Console.WriteLine("Error sharing files: " + e.ToString()); } } }//cs }//ns1.3KViews0likes3Commentsissue-with-site-page-beta-api-quick-link-webpart
Have documented this at three places. https://github.com/microsoftgraph/microsoft-graph-docs/issues/14359 https://sharepoint.stackexchange.com/questions/297709/unable-to-create-quick-links-web-part-on-modern-page-json-issue https://docs.microsoft.com/en-us/answers/questions/565249/issue-with-site-page-beta-api-quick-link-webpart.html https://docs.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-beta&tabs=http I am sending below payload with create page endpoint . While page gets created , i get attached error. { "name": "LinPage1.aspx", "title": "EriDefault", "publishingState": { "level": "checkout", "versionId": "0.1" }, "webParts": [ { "type": "c70391ea-0b10-4ee9-b2b4-006d3fcad0cd", "data": { "title": "Quick links", "description": "Quick links", "dataVersion": "2.0", "properties": { "items": [ { "sourceItem": { "progId": "", "url": "https://www.google.com", "itemType": 2, "fileExtension": "" }, "thumbnailType": 3, "title": "Google", "id": 2 }, { "sourceItem": { "progId": "", "url": "https://www.youtube.com", "itemType": 2, "fileExtension": "" }, "thumbnailType": 3, "title": "Youtube", "id": 1 } ], "isMigrated": true, "layoutId": "CompactCard", "layoutComponentId": "706e33c8-af37-4e7b-9d22-6e5694d92a6f", "shouldShowThumbnail": true, "title": "QuickLinks 2", "hideWebPartWhenEmpty": "true" }, "dynamicDataPaths": {}, "dynamicDataValues": {}, "serverProcessedContent": {} } } ] } This payload is copied from response of Add-PnPWebPart command (Through Fiddler) When page gets created , it does have quick links webpart however JSON it has is diffrent than the payload submitted above. Items gets nested for some reason and hence comalins with ForEach. Below is the Webpart Data (Got through MaintiananceMode) which is created from above payload, as you see Items chils is appearing twice, even though original payload has it once. . Any idea if its issue with payload or API itself? I could successfuly create other webpart type. Just quick links has issue { "id": "c70391ea-0b10-4ee9-b2b4-006d3fcad0cd", "instanceId": "aad89b1a-1dad-4abc-8006-2b8faceb8ecc", "title": "Quick links", "description": "Quick links", "dataVersion": "2.0", "properties": { "isMigrated": true, "layoutId": "CompactCard", "layoutComponentId": "706e33c8-af37-4e7b-9d22-6e5694d92a6f", "shouldShowThumbnail": true, "title": "QuickLinks 2", "hideWebPartWhenEmpty": "true", "items": { "items": [ { "thumbnailType": 3, "title": "Google", "id": 2, "sourceItem": { "progId": "", "url": "https://www.google.com", "itemType": 2, "fileExtension": "" } }, { "thumbnailType": 3, "title": "Youtube", "id": 1, "sourceItem": { "progId": "", "url": "https://www.youtube.com", "itemType": 2, "fileExtension": "" } } ] } }, "dynamicDataPaths": null, "dynamicDataValues": null, "serverProcessedContent": { "htmlStrings": {}, "searchablePlainTexts": {}, "imageSources": {}, "links": {} } }473Views0likes0CommentsRe: Delay between Graph API and Teams Client
@o provide further update on this. We did raise ticket with MS and the response was, "This behavior is expected since the exponential growth of teams and they are working on this. Issue is the pipelines that takes care of syncing Azure AD members with teams client is constantly getting throttled hence the delay. MS is working on BETA endpoint that could be on top of TEAM directly so changes will be instantaneous , however there is no ETA "3.1KViews0likes0CommentsDelay between Graph API and Teams Client
Hello We have a Teams automation, where we are removing members from teams which are classified as internal . This was working Okiesh for a year, however since last few months we are observing that it takes almost 2 days to get the Guest user actually removed from Teams Client. We use Graph api (Memebers endpoint ) to remove these users. The endpoint correctly return number of members with GET request. However , GUEST user can still access the teams for around two days then ultimately gets removed. Strange thing is, Guest users access to respective sharepoint site is removed immediately, its only Teams client that takes time. We have tried both V1 and Beta endpoint Have seen users reporting this randomly over the internet. One such case is at below link https://stackoverflow.com/questions/51291779/teams-graph-api-adding-a-team-member-not-always-working https://stackoverflow.com/questions/57004682/aad-groups-and-ms-teams-sync-is-too-slowSolved3.4KViews0likes2CommentsSharePoint migration tool non system drive
we have a migration tool install which by default tool C drive. all logs, reports are stored in c drive during migration. Our C drive is full now. So i wanted to check, if there any say to use D drive (which can be scaled as needed) to install and store migration artifacts. we have some 5 TB data to b moved and migration bcz of no storage in c driveSolved2KViews0likes1CommentRe: How do you find the tenant ID?
Sebastien Crevier This embarrassing, but what do we enter in the box, i tried tenantname.sharepoint.com , no luck Sebastien Crevier wrote: There are a lot of ways to do that but none of them are really simple... Our team got tired of looking everywhere for those tenant Azure & Office 365 IDs so we built an online tool to easily find them by typing in their respective domain. Hope it might help others too. https://www.whatismytenantid.com455KViews0likes2CommentsSize availability In tenant admin site collection list - SPO
One of our tenant shows below storage figures ( 42.88 TB available of 49.24 TB) Can someone please help me understand what these storage figures mean? is this total of all site collections? i.e Sharepoint Site collection (one with /sites) + Personal sites (/personal , One Drive For business) + Office 365 video site (/Portal) + Office 365 group sites (/teams) or its just sharepoint site collections and One drive for business, groups sites are calculated separately ? https://i.stack.imgur.com/Y2I43.pngSolved1.5KViews0likes6Comments
Recent Blog Articles
No content to show