Skip to main content
Solved

Getting permission issue in chats api

  • October 4, 2021
  • 1 reply
  • 213 views

I have made an application which fetches the chats info to build an analytics on the no of messages send and received.

The user authorizing application has super admin permissions.

Steps:

But while fetching one chat's post I get this message:

{
    "errors": [
        {
            "errorCode": "CHT-012",
            "message": "The requester must be team member."
        }
    ]
}

Why am I getting this error ? Are there any limitations in a way that could restrict super admin to access all the endpoints(including chat posts) ?

Best answer by PhongVu

Unfortunately, we don't have an API for an admin user to read team messaging for analytics directly like that. That API is for team members to read from a team he/she belongs to.

You can try with the compliance exports API and control with timeFrom/timeTo and chat Ids to fetch chat data. This API lets a "compliance export" admin user to access any team/chat/conversation.

View original
Did this thread help you find an answer to your question?

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2313 replies
  • Answer
  • October 4, 2021

Unfortunately, we don't have an API for an admin user to read team messaging for analytics directly like that. That API is for team members to read from a team he/she belongs to.

You can try with the compliance exports API and control with timeFrom/timeTo and chat Ids to fetch chat data. This API lets a "compliance export" admin user to access any team/chat/conversation.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings