GetUserLocalGroup

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > DBWArm >

GetUserLocalGroup

Description

Returns the current user permission profile

Syntax

call DBWShell("GetUserLocalGroup")

Results

@USER_LOCAL_GROUP

group to which the current user belongs to.

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

Remarks

This function must be used only together with the DBWARM system.

It is preferable to use the DBWGetUserLocalGroup library function instead of a direct call to the shell.

Example

DBWShell( "GetUserLocalGroup" )

if ( okDBW = False ) then exit function
UserLocalGroup = DBWInput( "@USER_LOCAL_GROUP" )