teams
5 TopicsCan't configure external sharing per site basis for SharePoint site that is connected to O365 Group
Hi There,, I have a security-related concern and was talking to the Microsoft support team and was advised to post my concern here for the developer to take a look... Please see the concerns originally posted with the link below... https://techcommunity.microsoft.com/t5/sharepoint/can-t-configure-external-sharing-per-site-basis-for-sharepoint/m-p/2231211 Thanks705Views0likes0CommentsHow to get the link to team via graph api
I have the script below and i can get myteams (graph api /joinedTeams). But i also want the url link to the individual teams. This is for a webpart on a classic sharepoint page. It shows as null when i retrieve the response. The property webUrl is null. Any ideas how to get this url via the teams api? See code below $(document).ready(function() { requestToken(); // call the requesttoken function on page load }); function requestToken() { $.ajax({ "async": true, "crossDomain": true, "url": "https://cors-anywhere.herokuapp.com/https://login.microsoftonline.com/xxx/oauth2/v2.0/token", // Pass your tenant name instead of sharepointtechie "method": "POST", "headers": { "content-type": "application/x-www-form-urlencoded" }, "data": { "grant_type": "client_credentials", //Provide your app id //Provide your secret "scope ": "https://graph.microsoft.com/.default" }, success: function (response) { //console.log(response); token = response.access_token; var email = _spPageContextInfo.userEmail; //get userid to filter teams getUserId(email); }, error: function (error) { console.log(JSON.stringify(error)); } }) } function getTeams(userid) { var teamsId; $.ajax({ method: 'GET', url: "https://graph.microsoft.com/v1.0/users/" + userid + "/joinedTeams", headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' }, }).success(function (response) { //console.log(response); var data = response.value; data.map(function (myTeams) { var Name = myTeams.displayName; teamsId = myTeams.id; //can list the teams here $('#myTeams').append("<div id=" + teamsId + "><a href=''>" + Name + "</a></div>"); }) }).error(function (error) { }); } function getUserId(email) { $.ajax({ method: 'GET', url: "https://graph.microsoft.com/v1.0/users/" + email, headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' }, }).success(function (data) { //console.log("UserId " + data.id); var userid = data.id; getTeams(userid); }).error(function (error) { }); } Thanks in Advance2.7KViews0likes0CommentsError using ADAL in Android app for Teams
I have developed a SharePoint WebPart that I'm using in Teams. This WebPart obtains, using ADAL, a token to validate the user. This application works fine in Sharepoint, Teams (online & desktop app) but when I try to execute this WebPart inside the Android app for Teams I have this error: I don't know if I need a special certificate in this case... 04-28 13:10:13.913 8456 8763 I OpenGLRenderer: Davey! duration=1870ms; Flags=1, IntendedVsync=187039755963, Vsync=187739755935, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=187755761281, AnimationStart=187755814874, PerformTraversalsStart=187756295135, DrawStart=188864679249, SyncQueued=188871540812, SyncStart=188872232895, IssueDrawCommandsStart=188874670916, SwapBuffers=188907635343, FrameCompleted=188911356593, DequeueBufferDuration=227000, QueueBufferDuration=2864000, 04-28 13:10:13.935 8456 8456 I PersonalAppsPagerAdapter: ProcessId: 8456, Thread: main, TabID: 14d6962d-6eeb-4f48-8890-de55454bb136 badge count: 0 04-28 13:10:13.959 8456 8456 I PersonalAppsPagerAdapter: ProcessId: 8456, Thread: main, TabID: 20c3440d-c67e-4420-9f80-0e50c39693df badge count: 0 04-28 13:10:13.965 8456 8456 I PersonalAppsPagerAdapter: ProcessId: 8456, Thread: main, TabID: 86fcd49b-61a2-4701-b771-54728cd291fb badge count: 0 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: ProcessId: 8456, Thread: main, onError04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: com.microsoft.aad.adal.AuthenticationException: Request authority:https://login.microsoftonline.com/common clientid:1fec8e78-bce4-4aaf-ab1b-5451cc387264 No result returned from acquireTokenSilent 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.tryAcquireTokenSilent(AcquireTokenRequest.java:394) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.performAcquireTokenRequest(AcquireTokenRequest.java:356) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.access$200(AcquireTokenRequest.java:55) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest$1.run(AcquireTokenRequest.java:129) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 04-28 13:10:13.968 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.lang.Thread.run(Thread.java:919) 04-28 13:10:13.970 8456 8456 W AuthorizationService_GetResourceTokenAction: ProcessId: 8456, Thread: main, com.microsoft.aad.adal.AuthenticationException: Request authority:https://login.microsoftonline.com/ 04-28 13:10:13.972 8456 8456 E acquire_resource_token_from_authsdk: ProcessId: 8456, Thread: main, Scenario has already ended for stepId eb376f5c-dddd-yyyy-xxx-112532bc4868 for scenario acquire_resource_token_from_authsdk 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: ProcessId: 8456, Thread: main, com.microsoft.aad.adal.AuthenticationException: Request authority:https://login.microsoftonline.com/ 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: com.microsoft.skype.teams.services.authorization.AuthorizationError: com.microsoft.aad.adal.AuthenticationException: Request authority:https://login.microsoftonline.com/ 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.skype.teams.services.authorization.actions.GetResourceTokenAction$4.onError(GetResourceTokenAction.java:322) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.skype.teams.services.authorization.adal.AdalAuthenticationProvider$2.onError(AdalAuthenticationProvider.java:352) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest$CallbackHandler$1.run(AcquireTokenRequest.java:991) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at android.os.Handler.handleCallback(Handler.java:883) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at android.os.Handler.dispatchMessage(Handler.java:100) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at android.os.Looper.loop(Looper.java:214) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at android.app.ActivityThread.main(ActivityThread.java:7397) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.lang.reflect.Method.invoke(Native Method) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: Caused by: com.microsoft.aad.adal.AuthenticationException: Request authority:https://login.microsoftonline.com/common clientid:1fec8e78-b222-222f-a22b-514512382264 No result returned from acquireTokenSilent 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.tryAcquireTokenSilent(AcquireTokenRequest.java:394) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.performAcquireTokenRequest(AcquireTokenRequest.java:356) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest.access$200(AcquireTokenRequest.java:55) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at com.microsoft.aad.adal.AcquireTokenRequest$1.run(AcquireTokenRequest.java:129) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 04-28 13:10:13.974 8456 8456 E AuthorizationService_GetResourceTokenAction: at java.lang.Thread.run(Thread.java:919) 04-28 13:10:13.998 8456 8456 I MainActivity: ProcessId: 8456, Thread: main, Google Play Services connection is successful. 04-28 13:10:13.999 8456 8456 I Choreographer: Skipped 74 frames! The application may be doing too much work on its main thread. 04-28 13:10:14.007 8456 9484 I DpmTcmClient: RegisterTcmMonitor from: $Proxy004-28 13:10:14.085 8456 11589 E TranslatorMessageUtilities: ProcessId: 8456, Thread: pool-1-thread-44, GetTranslationSupportedLanguages: unsuccessful. Error message:User is not authorized.. Response Code:401 04-28 13:10:14.199 8456 8763 I OpenGLRenderer: Davey! duration=1440ms; Flags=0, IntendedVsync=187756436031, Vsync=188989769315, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=188997886332, AnimationStart=188998025082, PerformTraversalsStart=189060853832, DrawStart=189182806488, SyncQueued=189187391072, SyncStart=189187852218, IssueDrawCommandsStart=189189284718, SwapBuffers=189194257374, FrameCompleted=189197163728, DequeueBufferDuration=221000, QueueBufferDuration=1885000, 04-28 13:10:14.275 8456 8456 I com.microsoft.skype.teams.calendar.viewmodels.MeetingsViewModel: ProcessId: 8456, Thread: main, Loading meeting event list. Force refresh: false 04-28 13:10:14.276 8456 11658 D skia : --- Failed to create image decoder with message 'unimplemented' 04-28 13:10:14.280 8456 11658 I chatty : uid=10136(com.microsoft.teams) FrescoIoBoundEx identical 16 lines04-28 13:10:14.280 8456 11658 D skia : --- Failed to create image decoder with message 'unimplemented' 04-28 13:10:14.280 8456 9608 I com.microsoft.skype.teams.calendar.viewmodels.MeetingsViewModel: ProcessId: 8456, Thread: Pool-ViewData-Thread-3, setViewState is called with false isError value and 0 item count This is my code: // Obtaining loginName from Sharepoint context let loginName = this.context.pageContext.user.loginName; let source = Sources.sharepoint; // Obtaining loginName from Teams context if (this.context.sdks.microsoftTeams) { loginName = this.context.sdks.microsoftTeams.context.loginHint; source = Sources.teams; } // Obtaining token provider let tp = await this.context.aadTokenProviderFactory.getTokenProvider(); let config = tp["_defaultConfiguration"]; let aadInstanceUrl = config.aadInstanceUrl[length - 1] === "/" ? config.aadInstanceUrl : config.aadInstanceUrl + "/"; // Config context let ctx = new AuthenticationContext({ tenant: tenantId, clientId: clientId, instance: aadInstanceUrl, redirectUri: config.redirectUri, extraQueryParameter: "login_hint=" + encodeURIComponent(loginName), loadFrameTimeout: 60000 }); // Check user let cu = ctx.getCachedUser();console.log("USER", cu, loginName, ctx); if (cu && cu.userName.toLowerCase() !== loginName.toLowerCase()) { console.log("Clean user cache"); ctx.clearCache(); } // Login processconsole.log("Login process"); // Obtaining Azure AD Token let azureADToken = this.acquireToken(ctx, clientId); Could somebody give me a clue to solve this? Thanks!1.2KViews0likes0CommentsHow to sync a SharePoint Web Part with Teams?
I have developed a SharePoint WebPart, this component has several properties that I can modify from SharePoint: width, height... I have installed the same component in Teams and works fine but I don't know how can I change this properties in Teams. Logically, I think that by changing the values in Sharepoint, they should automatically refresh in Teams but it's not like that. On the other hand, If I try to click on the "Sync button with Teams", I don't why never works and throws an error. https://xxxx.sharepoint.com/sites/catalogApp/_api/web/tenantappcatalog/SyncSolutionToTeams --> Error 500 My problem is that I can edit the properties in Teams. Now I have something like this when I try to edit the WebPart in Teams: I would like to obtain something like this: Somebody know how what can I do to sync this parameters or allow to edit in Teams?1.7KViews0likes2Comments