Skip to main content

@wildix/wms-permissions-client > CheckSeeAnalyticsPermissionCommand

CheckSeeAnalyticsPermissionCommand class

Checks the can: See analytics permissions for a specific user for the target.

Signature:

export declare class CheckSeeAnalyticsPermissionCommand extends CheckSeeAnalyticsPermissionCommand_base 

Extends: CheckSeeAnalyticsPermissionCommand_base

Example

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

import { WmsPermissionsClient, CheckSeeAnalyticsPermissionCommand } from "@wildix/wms-permissions-client"; // ES Modules import
// const { WmsPermissionsClient, CheckSeeAnalyticsPermissionCommand } = require("@wildix/wms-permissions-client"); // CommonJS import
const client = new WmsPermissionsClient(config);
const input = { // CheckSeeAnalyticsPermissionInput
identity: { // Identity
extension: "STRING_VALUE",
email: "STRING_VALUE",
userId: "STRING_VALUE",
groupId: "STRING_VALUE",
},
domain: "STRING_VALUE",
port: Number("int"),
target: {
extension: "STRING_VALUE",
email: "STRING_VALUE",
userId: "STRING_VALUE",
groupId: "STRING_VALUE",
},
};
const command = new CheckSeeAnalyticsPermissionCommand(input);
const response = await client.send(command);
// { // CheckSeeAnalyticsPermissionOutput
// allowed: true || false, // required
// };