DBWGetUserLocalGroup

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > DBWARM >

DBWGetUserLocalGroup

Description

Retrieve the DBWorks authorization local group of the current user

Syntax

Function DBWGetUserLocalGroup()

Return Values

After calling this function check the Boolean value of the okDBW variable:

TRUE

if succeeded in fetching the value

FALSE

otherwise

The function assumes the @USER_LOCAL_GROUP variable value.

The variable can assume these values:

Power User: it is a full permissions user

DBWorks Integrated

default user not belonging to any local group

DBInventor Integrated

default user not belonging to any local group

DBWorks StandAlone

user belongs to local group DBWorks Standalone Power Users

Simple User: it is a restricted permissions user

DBWorks Integrated

user belongs to local group DBWorks Users

DBInventor Integrated

user belongs to local group DBWorks Users

DBWorks StandAlone

not available

View-Only User: it is a user with view-only permissions

DBWorks Integrated

not available

DBInventor Integrated

not available

DBWorks StandAlone

default user not belonging to any local group

 

Example

user_local_group = DBWGetUserLocalGroup()