Lfidapi¶
Usage: lftools lfidapi [OPTIONS] COMMAND [ARGS]...
LFID API TOOLS.
Options:
--help Show this message and exit.
Commands:
create-group Create group.
invite Email invitation to join group.
match-ldap-to-info Match an LDAP or GITHUB group membership to an...
search-members List members of a group.
user Add and remove users from groups.
Commands¶
create-group¶
Usage: lftools lfidapi create-group [OPTIONS] GROUP
Create group.
Options:
--help Show this message and exit.
invite¶
Usage: lftools lfidapi invite [OPTIONS] EMAIL GROUP
Email invitation to join group.
Options:
--help Show this message and exit.
search-members¶
Usage: lftools lfidapi search-members [OPTIONS] GROUP
List members of a group.
Options:
--help Show this message and exit.
user¶
Usage: lftools lfidapi user [OPTIONS] USER GROUP
Add and remove users from groups.
Options:
--delete remove user from group
--help Show this message and exit.
match-ldap-to-info¶
Usage: lftools lfidapi match-ldap-to-info [OPTIONS] INFO_FILE GROUP
Match an LDAP or GITHUB group membership to an INFO.yaml file.
Options:
--githuborg TEXT github org name
--noop show what would be changed
--help Show this message and exit.
API requires an [lfid] section in ~/.config/lftools/lftools.ini:
[lfid]
clientid = lf-releng-jenkins
client_secret = REDACTED_SEE_SHARED_PASSWORD_STORAGE
refresh_token = REDACTED_SEE_SHARED_PASSWORD_STORAGE
token_uri = https://identity.linuxfoundation.org/oauth2/token
url = https://identity.linuxfoundation.org/rest/auth0/og/