Can MIPSDK obtain the login user (self) role name?

Please see this class;

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_login_1_1_login_settings.html&tree=tree_search.html?search=loginsettings

If this class does not fit for your question please free to ask us again.

I checked the page you told me but didn’t know how to get the role name.

Please give the sample code to get the role name.

A user can be member of multiple roles. There is no method in the MIP SDK to ask for which roles a user is member of.

An alternative method is to define your own SecurityActions (ref. VideoOS.Platform.Admin.SecurityAction Class Reference)

http://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_admin_1_1_security_action.html&tree=tree_search.html?search=securityaction

You can see it in use also used in the Sensor Monitor sample, but note that you do not have to create item as this sample do, you can have SecurityActions for your plugin anyways.