Skip to main content

Check if user can DM another user in shared channels context

GET 

/api/v4/sharedchannels/users/:user_id/can_dm/:other_user_id

Checks if a user can send direct messages to another user in a shared channels context. In addition to user visibility, this evaluates remote-cluster direct-connect restrictions for remote users.

Minimum server version: 10.11

Permissions

Must be authenticated and able to view the target user.

Request

Responses

DM permission check successful