I developed a working building block.
How do I send the current logged in user email and role (Admin, Instructor, Student) from inside my building block?
Found a way
User user = b2Context.getContext().getUser();String email = user.getEmailAddress();CourseMembership courseMembership = b2Context.getContext().getCourseMembership();Role role = courseMembership.getRole();
Do we need to import any additional blackboard packages to make this work.
I am trying to get the name of user who is logged in Blackboard.
Retrieving data ...