Method: Jenkins2::API::RoleStrategy::Proxy#list

Defined in:
lib/jenkins2/api/role_strategy.rb

#listObject

Get existing roles and users assigned to them.

Returns

Hash where keys are roles, and values are arrays of users assigned to role.



24
25
26
27
# File 'lib/jenkins2/api/role_strategy.rb', line 24

def list
	::JSON.parse(connection.get(build_path('getAllRoles')).body,
		object_class: ::OpenStruct).to_h
end