Hi,
>>Basically, I would like to do the same in NPS extension, is it possible?
Please check if the following link is helpful:
https://msdn.microsoft.com/en-us/library/bb891997(v=vs.85).aspx
Besides, for coding related questions, MSDN forum might be more suitable.
Best Regards,
Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.