public List < ImpersonationToken > getImpersonationTokens ( Object userIdOrUsername , ImpersonationState state ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "state" , state ) . withParam ( PER_PAGE_PARAM , getDefaultPerPage ( ) ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "users" , getUserIdOrUsername ( userIdOrUsername ) , "impersonation_tokens" ) ; return ( response . readEntity ( new GenericType < List < ImpersonationToken > > ( ) { } ) ) ; }
Get a list of a specified user s impersonation tokens . Available only for admin users .