User Profile
christosjubile
Brass Contributor
Joined Feb 28, 2021
User Widgets
Recent Discussions
Re: MS Graph API Evaluation mode capacity has been exceeded
Hello Guys, I manage to register another app with my company account I have activated a pay-as-you-go subscription but after a short number of messages I fetch I was again witnessed the same problem, can you tell me how can I navigate to azure account to activate model-A or model-B?3.1KViews0likes3CommentsRe: MS Graph API Evaluation mode capacity has been exceeded
Yes the registered app I am referring to is one I have registered with my personal account (gmail) and NOT from my company account which the representative of the account I am writing you this post if you want I can write you the app id to check it out because this forum is rejecting to write any mails3.2KViews0likes5CommentsCompactToken parsing failed with error code: 80049217
Hello I try to call GET https://graph.microsoft.com/v1.0/users to retrieve the members of a tenant but I am getting the following error CompactToken parsing failed with error code: 80049217 I have added the application permissions to the app User.Read.All, User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All And also I have granted as admin the proper permissions from our test tenant to the app1.5KViews0likes0CommentsRe: MS Graph API Evaluation mode capacity has been exceeded
Thank you for your help I have created a subscription but when I am trying to buy/try one of the prerequisites of model A i.e Microsoft 365 E5/A5 your service it does not allowing me to login because i have to be on a company account!3.3KViews0likes9CommentsMS Graph API Evaluation mode capacity has been exceeded
Hello I have a registered app with protectedAPIs permissions granted, I am trying to fetch all the chat and channel messages from our company tenant but I am taking the following message as response {'error': {'code': 'PaymentRequired', 'message': 'Evaluation mode capacity has been exceeded. Use a valid billing model. Visit https://docs.microsoft.com/en-us/graph/teams-licenses for more details.', I searched the Azure AD and Azure Dashboard to change the billing model of our registered app but I can not find where I can pay in order to have more requests3.9KViews0likes16CommentsSimpleGraphClient: Invalid token received
I started developing a new MS Teams Application and I am trying to authenticate a MS Teams user on my app's backend by following the source code of https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-sso But unfortunately when I am trying to create a SimpleGraphClient with the token acquired by this function // Get Access Token const getAccessToken = async(req) => { return new Promise((resolve, reject) => { const { tenantId, token } = reqData(req); const scopes = ['User.Read']; //['User.Read', 'email', 'offline_access', 'openid', 'profile']; const url = `https://login.microsoftonline.com/${ tenantId }/oauth2/v2.0/token`; const params = { client_id: process.env.MicrosoftAppId, client_secret: process.env.MicrosoftAppPassword, grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', assertion: token, requested_token_use: 'on_behalf_of', scope: scopes.join(' ') }; // eslint-disable-next-line no-undef fetch(url, { method: 'POST', body: querystring.stringify(params), headers: { Accept: 'application/json', 'Content-Type': 'application/x-www-form-urlencoded' } }).then(result => { if (result.status !== 200) { result.json().then(json => { // eslint-disable-next-line prefer-promise-reject-errors reject({ error: json.error }); }); } else { result.json().then(async json => { resolve(json.access_token); }); } }); }); }; I am taking the exception : throw new Error('SimpleGraphClient: Invalid token received.'); What am I doing wrong?1KViews1like1CommentRe: Give the ability for an ms team admin to revoke all granted permission to an app
Thank you for your answer I know this solution but I forgot to mention that I am asking if there is any way to give a hyperlink just like I do for the permission grant in order to be more convinient for our client. So to summarize I have a hyperlink for permission grant but I need a way to give a hyperlink to revoke with a click all the granted permission our client gave to app1.5KViews0likes0CommentsGive the ability for an ms team admin to revoke all granted permission to an app
Hello I have an application which is asking for permissions grant with https://login.microsoftonline.com/%s/adminconsent Is there any way to give the ms teams admin the ability to revoke the granted permissions which gave to my app before? Thanks in advance1.6KViews0likes5CommentsApply filter on GET /beta/users/<user_id>/chats/getAllMessages fails
Hello I have a call at the endpoint: /beta/users/<user_id>/chats/getAllMessages?$filter="lastModifiedDateTime gt 2021-07-18T00:00:00.000Z" with the below code: url = '%sbeta/users/%s/chats/getAllMessages?$filter="lastModifiedDateTime gt %sT00:00:00.000Z"' % (ms_api_url, user_id, before7days.strftime("%Y-%m-%d")) response = requests.get(url, headers = { 'Authorization': 'Bearer %s' % access_token }).json() but I am geting the below error: { 'error': { 'code': 'BadRequest', 'message': 'Invalid filter clause', 'innerError': { 'date': '2021-07-25T09:04:49', 'request-id': '590c724f-e161-44de-a8d9-a011dec40b6e', 'client-request-id': '590c724f-e161-44de-a8d9-a011dec40b6e' } } } what am I doing wrong?632Views0likes0CommentsHow to fetch chat list and their members with MS graph API
Hello, I want to fetch all possible chat rooms and their members with MS Graph API, I had a similar problem when I wanted to obtain all possible messages but this solved by requesting https://docs.microsoft.com/en-us/graph/teams-protected-apis form but there is not an endpoint that returns the chat list and also their members. Thank you in advance2.5KViews0likes2CommentsRe: MS Teams: can not fetch channel messages with Graph API using an application token
Yes this solution is working so you can consider this question as solved but I want some extra help Right now with this API I can get all messages both channel and chats my question is how can I get some information about the chat rooms and especially the member of a chat room1.9KViews0likes0CommentsMS Teams: can not fetch channel messages with Graph API using an application token
I have created a test application which is requesting adminconsent from a MS teams admin with the following scopes: openid offline_access channelmessage.read.group channelmessage.read.all chat.read chat.readbasic chat.readwrite user.read.all channel.readbasic.all directory.read.all group.read.all groupmember.read.all organization.read.all people.read.all presence.read.all team.readbasic.all I am using an application token to fetch ms teams organization data like users, channels, teams etc. I have managed to fetch with Graph API the user, channel, teams data of an organization, but when I tried to fetch messages with https://graph.microsoft.com/v1.0/teams/team_id/channels/channel_id/messages I am getting the following error: { "error": { "code": "UnknownError", "message": "", "innerError": { "date": "2021-03-03T22:23:47", "request-id": "a279044a-ab9e-4c18-af71-5a65ea7cee86", "client-request-id": "a279044a-ab9e-4c18-af71-5a65ea7cee86" } } }Solved2.2KViews0likes4Comments
Recent Blog Articles
No content to show