Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.util.isAdmin()#

Syntax#

monster.util.isAdmin([user]);

Parameters#

Key Description Type Default Required
user User object with the same format as an account returned by a GET on the /users/{userid} API. Object false

Return value#

A Boolean indication whether or not the current or specified user is an admin.

Description#

This method checks if a user is currently logged in as an admin user.

Example#

if(monster.util.isAdmin()) {
    // do something if user is an admin
};