Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


## AssignCustomer

OrderPipeDescription
100AssignCustomerIf customer is not yet assigned to user then assign customer.

## CreateGetAccountResult

<table class="TableStyle-Borders" style="margin-left: 0; margin-right: auto; width: 100%;" data-cellspacing="0"> <colgroup> <col style="width: 33%" /> <col style="width: 33%" /> <col style="width: 33%" /> </colgroup> <thead> <tr class="header TableStyle-Borders-Head-Header1"> <th class="TableStyle-Borders-HeadE-Regular-Header1">Order</th> <th class="TableStyle-Borders-HeadE-Regular-Header1">Pipe</th> <th class="TableStyle-Borders-HeadD-Regular-Header1">Description</th> </tr> </thead> <tbody> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyE-Regular-Row1">100</td> <td class="TableStyle-Borders-BodyE-Regular-Row1">CreateGetAccountResult</td> <td class="TableStyle-Borders-BodyD-Regular-Row1"><p>Creates GetAccountResult object and fills next fields:</p> <p>UserProfile - uses parameter.UserProfile</p> <p>IsSubscribed - checks if parameter.UserProfile.Email is subscribed to list</p> <p>IsLockedOut - uses parameter.UserProfile.</p> <p>IsDeactivatedCanApproveOrders - checks that user has one of next roles: Administrator or Buyer3</p> <p>CanViewApprovalOrders - checks that user has one of next roles: Administrator, Buyer1, Buyer2, Buyer3</p> <p>Role - uses first user standard role</p></td> </tr> <tr class="even TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyB-Regular-Row1">200</td> <td class="TableStyle-Borders-BodyB-Regular-Row1">CopyCustomPropertiesToResult</td> <td class="TableStyle-Borders-BodyA-Regular-Row1">Copies custom properties from parameter.UserProfile to createdGetAccountResult.</td> </tr> </tbody> </table>

## GetCustomLandingPage

OrderPipeDescription
100GetCustomLandingPageReturns custom landing page for specified customer. If customer is not specified then returns null. If customer CustomLandingPage property is blank then returns empty string. Else returns customer CustomLandingPage property. If user located at microsite then microsite prefix will be added to page url.

## GetRoleName

OrderPipeDescription
100GetRoleNameReturns first standard role which user has. If user has no standard roles then returns empty string.

## GetRoles

<table class="TableStyle-Borders" style="margin-left: 0; margin-right: auto; width: 100%;" data-cellspacing="0"> <colgroup> <col style="width: 33%" /> <col style="width: 33%" /> <col style="width: 33%" /> </colgroup> <thead> <tr class="header TableStyle-Borders-Head-Header1"> <th class="TableStyle-Borders-HeadE-Regular-Header1">Order</th> <th class="TableStyle-Borders-HeadE-Regular-Header1">Pipe</th> <th class="TableStyle-Borders-HeadD-Regular-Header1">Description</th> </tr> </thead> <tbody> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyB-Regular-Row1">100</td> <td class="TableStyle-Borders-BodyB-Regular-Row1">GetRoles</td> <td class="TableStyle-Borders-BodyA-Regular-Row1"><p>Returns GetRolesResult object with next fields:</p> <ul> <li>StandardRoles - list of all standard roles. It includes Administrator, also if budged management is enabled it includes Buyer1, Buyer2 and Buyer3, also if requisitions is enabled then it includes Requisitioner</li> <li>RolesThatCanBeApprovers - Administrator, Buyer3</li> <li>RolesThatRequireApprover - Requisitioner, Buyer1, Buyer2</li> <li>RolesThatCanViewApprovals - Administrator, Buyer1, Buyer2, Buyer3</li> <li>RolesThatCanViewUsers - Administrator</li> <li>RolesThatCanAddUsers - Administrator</li> <li>RolesThatCanUpdateUsers - Administrator</li> </ul></td> </tr> </tbody> </table>

## SetRole

OrderPipeDescription
100SetRoleSets role to user. A user can only be assigned to one standard role, so if the role to set is one of the standard roles removes the current standard role and adds the new one.

## UnassignCustomer

OrderPipeDescription
100UnassignCustomerUnassigns specified customer from specified user if user has this customer.