第 4 章 Searching Identity Management entries from the command line
The following sections describe how to use IdM commands which help you to find or show objects.
4.1. Overview of listing IdM entries 复制链接链接已复制到粘贴板!
You can use the ipa *-find commands to help you to search for particular types of IdM entries.
To list all the find commands, use the following ipa help command:
$ ipa help commands | grep find
You may need to check if a particular user is included in the IdM database. You can then list all users with the following command:
$ ipa user-find
To list user groups whose specified attributes contain a keyword:
$ ipa group-find keyword
For example the ipa group-find admin command lists all groups whose names or descriptions include string admin:
----------------
3 groups matched
----------------
Group name: admins
Description: Account administrators group
GID: 427200002
Group name: editors
Description: Limited admins who can edit other users
GID: 427200002
Group name: trust admins
Description: Trusts administrators group
When searching user groups, you can also limit the search results to groups that contain a particular user:
$ ipa group-find --user=user_name
To search for groups that do not contain a particular user:
$ ipa group-find --no-user=user_name