diff --git a/app/controllers/schools/users_controller.rb b/app/controllers/schools/users_controller.rb index 9d850f645..12dec27f6 100644 --- a/app/controllers/schools/users_controller.rb +++ b/app/controllers/schools/users_controller.rb @@ -1,6 +1,8 @@ module Schools class UsersController < BaseController - def index; end + def index + @users = DFESignInAPI::OrganisationUsers.new(current_user.sub, current_school.urn).users + end def new @user_invite = DFESignInAPI::UserInvite.new diff --git a/app/views/schools/users/index.html.erb b/app/views/schools/users/index.html.erb index 733096d30..1480234eb 100644 --- a/app/views/schools/users/index.html.erb +++ b/app/views/schools/users/index.html.erb @@ -27,4 +27,5 @@ + <%= @users %>