We're updating the issue view to help you get more done. 

CreateUser Error in scheduler

Description

Please change from PortalController.GetCurrentPortalSettings() as it comes null in scheduler to PortalSettings(portalid), you are calling it in CreateUser(ref userinfo) method

internal static void UpdateUser(int portalId, UserInfo user, bool loggedAction, bool clearCache)
{
portalId = UserController.GetEffectivePortalId(portalId);
user.PortalID = portalId;
MembershipProvider.Instance().UpdateUser(user);
if (loggedAction)
{
EventLogController eventLogController = new EventLogController();
eventLogController.AddLog(user, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.USER_UPDATED);
}
if (clearCache)
{
DataCache.ClearUserCache(portalId, user.Username);
}
}

QA Test Plan

None

Status

Assignee

Bing Wu

Reporter

karamjeet singh

Story Size

None

Severity

Show Stopper

Triage

Triaged

Reported in Build #

None

Fixed in Build

Dev Owner

None

Includes Code Fix

Yes

Documentation Required

No

Trouble Ticket

None

Requires More Info

None

Journal URL

None

QA Story Points

None

QA Owner

None

Injected

None

Automation Required

None

Code Review Owner

None

Story Points

1

Components

Sprint

None

Fix versions

Affects versions

7.2.1

Priority

High