USE [YourDatabase]
GO
;WITH DataProp as (SELECT pd.*
FROM cmsPropertyData as pd
JOIN cmsPropertyType as pt ON pt.Id = pd.propertytypeid AND pt.Alias = 'umbracoMemberApproved'
WHERE contentNodeId = ( SELECT Id
FROM umbracoNode
WHERE text LIKE '%your member name%' ))
UPDATE DataProp SET dataInt = 0
The part dataInt = 0 sets the property Is Approved to false, if you want to approve the member, set this to 1.
I now do a search on text for getting the right Member, you should be able to change this and pass the id of the member if you have this at your end:
Disable Member Account via SQL
Hi Everyone,
We have some pretty heavy integration, and something I'd like to do is to be able to disable a member via SQL.
We can maintain they're record via sql, but I cant see anything immediately obvious in regards to disabling their account.
I'd like to avoid deleting the account if possible.
B
Hi Chris,
Something like this:
The part
dataInt = 0
sets the propertyIs Approved
to false, if you want to approve the member, set this to 1.I now do a search on text for getting the right Member, you should be able to change this and pass the id of the member if you have this at your end:
Hope this helps!
/Michaël
You absoultey beautiful person.
Thank you!
No problem, glad it solved your problem!
Have a nice day.
/Michaël
is working on a reply...