Click or drag to resize
UserInfoProviderCheckUserBelongsToSite Method
Check if user belongs to specified site, considering settings key CMSSiteSharedAccounts.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static UserInfo CheckUserBelongsToSite(
	UserInfo user,
	string siteName
)

Parameters

user
Type: CMS.MembershipUserInfo
UserInfo
siteName
Type: SystemString
SiteName

Return Value

Type: UserInfo
Returns same userinfo if user belongs to site(if shared accounts disabled) or null if not
See Also