Wasn’t sure what category this post was most appropriate in.
I’m wondering if there is some built in way or preferred way of doing security trimming on response DTOs.
Depending on which Role is currently authenticated with the service, I want to optionally populate specific fields in the response DTO. So for example, if Admin, populate all fields. If User, populate all but the “ConnectionString” field, etc.