Пример #1
0
        private void tsbImpersonate_Click(object sender, EventArgs e)
        {
            var user = service.RetrieveMultiple(new QueryExpression("systemuser")
            {
                ColumnSet = new ColumnSet("fullname"),
            }).Entities.First();

            currentDetail.Impersonate(user.Id, user.GetAttributeValue <string>("fullname"));
        }