Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the role from launch data #145

Open
rsajja79 opened this issue Aug 13, 2024 · 4 comments
Open

How to get the role from launch data #145

rsajja79 opened this issue Aug 13, 2024 · 4 comments

Comments

@rsajja79
Copy link

I can see the launch data. and i has the name, email, etc. I want to see if the launch is initiated by an Instructor or a student. How can I get this information?

I see a field called "roles", but it doesnt specify the role of the launch requestor. what data should i be looking at?

@hmoffatt
Copy link
Contributor

Role is the correct field. What do you see if not the role of the launcher?

@rsajja79
Copy link
Author

'https://purl.imsglobal.org/spec/lti/claim/roles': ['http://purl.imsglobal.org/vocab/lis/v2/institution/person#Instructor', 'http://purl.imsglobal.org/vocab/lis/v2/institution/person#Student', 'http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor', 'http://purl.imsglobal.org/vocab/lis/v2/system/person#User']

this is the only "roles" data that is in the launch_data. There is no "role" field in the launch_data. This launch_data I'm getting it from
launch_data = message_launch.get_launch_data()
print(launch_data)

@hmoffatt
Copy link
Contributor

Yes that is the field you are looking for

@ziaulrehman40
Copy link

#150 is also related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants