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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: