Skip to content

macOS command line example to demonstrate the usage of Collaboration Framework with Swift

Notifications You must be signed in to change notification settings

suolapeikko/identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

identity

macOS command line tool example of using Collaboration Framework's Identity classes using Swift. Inspiration and partial port of Privileges' MTIdentity class

$ ./identity 
identity: macOS command line utility that checks users group memberships and group guids

         Usage:
         identity <group_name>               Get gid based on group name
         identity <user_name> <gid>          Check (true/false) if user belongs to a group

You can test the tool by listing macOS's users and groups using these commands:

$ dscl . list /users

$ dscl . list /groups

Examples:

./identity admin
80

./identity myuser 80
true

./identity nonexistent
No such group

About

macOS command line example to demonstrate the usage of Collaboration Framework with Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages