question

JohnCade-5188 avatar image
1 Vote"
JohnCade-5188 asked JimmyYang-MSFT commented

Using Azure AD to gain the orgid of a Teams Tag.

Hi,

I'm currently building a system of Flows/Power Automates in order to run behind a Form in order to send a number of Flow Adaptive Cards to a Channel, within this channel I want to use the Tags System built in and I've manged to find the following code:

     {
       "type": "mention",
       "text": "<at>John </at>",
       "mentioned": {
         "id": "8:orgid:{org-ID-of-the-user}",
         "name": "John "
       }

And I wondered if anyone could help me get started with finding the org-ID-of-the-Team not the user.

For example I currently have a channel setup with a @Drivers setup as a group and I want a certain adaptive card to mention this tag instead of name every single person.

Thanks in advance.
John

office-teams-windows-itprooffice-teams-app-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Is there any update on this case?

0 Votes 0 ·
JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered

Hi!
According to your description, this issue is related to script development, which we do not support. We recommend you post it in this forum.
https://powerusers.microsoft.com/t5/General-Power-Automate/bd-p/MPAForum

In my experience, you can use the joinedTeams API to get all of the Teams that the current user belongs to. The response contains the group ID for each Team.
https://docs.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-beta&tabs=http

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Wajeed-MSFT avatar image
1 Vote"
Wajeed-MSFT answered

Currently, @mention for team, channel or group is not supported in Bot messages/cards. We are updating the card documentation to add note for this.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.