Platforms to show: All Mac Windows Linux Cross-Platform

Back to DarwinUserListMBS class.

DarwinUserListMBS.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 DarwinUserListMBS
MsgBox "CurrentEffectiveUserID: "+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.

DarwinUserListMBS.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 DarwinUserListMBS
MsgBox "CurrentGroupID: "+str(l.CurrentGroupID)

The real group ID is specified at login time.

DarwinUserListMBS.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 DarwinUserListMBS
MsgBox "CurrentUserID: "+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.

DarwinUserListMBS.User(index as Integer) as DarwinUserMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the user with the given index.
Example
// find short user name
dim d as DarwinUserListMBS
dim u as string
dim p as DarwinUserMBS
dim uid,i,c as Integer

u=SystemInformationMBS.Username
d=new DarwinUserListMBS

c=d.Count-1
for I=0 to c
p=d.User(i)
if p.LongName=u then
MsgBox p.Name
end if
next

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


The biggest plugin in space...