Platforms to show: All Mac Windows Linux Cross-Platform

Back to DarwinUserMBS class.

DarwinUserMBS.CurrentEffectiveUserID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The effective user ID of the calling process.
Example
dim l as new DarwinUserMBS
MsgBox str(l.CurrentEffectiveUserID)

The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of 'set-user-ID' mode processes, getuid() is used to determine the real-user-id of the calling process.

DarwinUserMBS.CurrentGroupID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The real group ID of the calling process.
Example
dim l as new DarwinUserMBS
MsgBox str(l.CurrentGroupID)

The real group ID is specified at login time.

DarwinUserMBS.CurrentUserID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The real user ID of the calling process.
Example
dim l as new DarwinUserMBS
MsgBox str(l.CurrentUserID)

The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of 'set-user-ID' mode processes, getuid() is used to determine the real-user-id of the calling process.

DarwinUserMBS.LoadUserByID(userid as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Fills the properties of this class with the values for the user with the given ID.
Example
dim l as new DarwinUserMBS

l.LoadUserByID l.CurrentUserID

MsgBox l.Name

Some examples using this method:

DarwinUserMBS.LoadUserByName(name as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Fills the properties of this class with the values for the given user.
Example
dim l as new DarwinUserMBS

l.LoadUserByName "cs"

MsgBox l.LongName

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...