Random Musings

June 4, 2009

Query only ‘enabled’ users

Filed under: Uncategorized — haditeo @ 10:08 pm
Tags: ,

In order to search for all system users who are not disabled, these ConditionExpression needs to be used

// Create the ConditionExpression.
ConditionExpression statusCodeConditionExpression = new ConditionExpression();

// Set the condition for the retrieval
statusCodeConditionExpression.AttributeName = "isdisabled";
statusCodeConditionExpression.Operator = ConditionOperator.Equal;
statusCodeConditionExpression.Values = new object[] { false };

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.