Developer forum

Forum » Development » Need user by Externalid but GetUserBySql is obsolete and GetUserByExternalId internal

Need user by Externalid but GetUserBySql is obsolete and GetUserByExternalId internal

Brian Bolks
Reply

We just upgraded a solution and now the Dynamicweb.Security.UserManagement.User.GetUserBySql is marked obsolete. 

We used it to get a user by its externalId.

I see there is a function GetUserByExternalId but its Internal.

Why is it internal? and can it be made public. And else is there a way to get a user by its externalId through a not obsolete function and not getting All users first?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Brian

Yes, we are phasing out the "BySql" methods due to security, performance and caching issues. But it will not ne removed as long as you are on the 9.* versions. So in 10+ it will be phased out.

I have made GetUserByExternalId public for the next release.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum