Skip to main content

@wildix/wms-permissions-client > CheckViewCallRecordingsOfUsersPermissionCommand

CheckViewCallRecordingsOfUsersPermissionCommand class

Checks the can: See call recordings permissions of a specific user for the list of targets.

Signature:

export declare class CheckViewCallRecordingsOfUsersPermissionCommand extends CheckViewCallRecordingsOfUsersPermissionCommand_base 

Extends: CheckViewCallRecordingsOfUsersPermissionCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { WmsPermissionsClient, CheckViewCallRecordingsOfUsersPermissionCommand } from "@wildix/wms-permissions-client"; // ES Modules import
// const { WmsPermissionsClient, CheckViewCallRecordingsOfUsersPermissionCommand } = require("@wildix/wms-permissions-client"); // CommonJS import
const client = new WmsPermissionsClient(config);
const input = { // CheckViewCallRecordingsOfUsersPermissionInput
identity: { // Identity
extension: "STRING_VALUE",
email: "STRING_VALUE",
userId: "STRING_VALUE",
groupId: "STRING_VALUE",
},
domain: "STRING_VALUE",
target: [ // IdentityList // required
{
extension: "STRING_VALUE",
email: "STRING_VALUE",
userId: "STRING_VALUE",
groupId: "STRING_VALUE",
},
],
};
const command = new CheckViewCallRecordingsOfUsersPermissionCommand(input);
const response = await client.send(command);
// { // CheckViewCallRecordingsOfUsersPermissionOutput
// allowed: true || false, // required
// };