Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get LoginName of domain group

$
0
0

Dear All,

I'm trying to develop sharepoint 2010 workflow which is a legacy workflow from sharepoint 2007.  Inside that workflow I need to get a security group domain for approval and store its loginname inside database for comparison later on. I've a  problem getting that loginname from security group domain using spuser.

If I use SPUser.LoginName it'll always return SystemUserKey.

What I expected c:0+.w|WIN\CS-Accounting, what I got from that property c:0+.w|s-1-5-21-1816355847-1913084368-15xxxxxxx-xxxxx.  It's the same value as in SystemUserKey property under SPUser object.  Is there any way I could get that domain group loginname inside sharepoint?

I got that spuser object by passing WIN\CS-Accounting using EnsureUser method under SPWeb object.

This is a SharePoint 2010 workflow which is run under SharePoint 2013

Please help...

Best Regards,
Ariwibawa


Ariwibawa


Viewing all articles
Browse latest Browse all 7589

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>