Is it possible can we do this in webapi
[Authorize(Roles=//set dynamically)]
Hi Krishna@12,
Refer below links.
https://stackoverflow.com/questions/44794736/dynamic-authorization-of-roles-asp-net-core
https://codinginfinite.com/dynamic-role-based-authorization-asp-net-core-assign-database/
https://www.codeproject.com/Articles/1248792/Dynamic-Role-Based-Authorization-in-ASP-NET-Core
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.