Wednesday, 18 July 2018

How to add a guest user in Azure active directory/portal

  1. Sign in to the Azure portal as an Azure AD administrator.
  2. In the navigation pane, select Azure Active Directory.
  3. Under Manage, select Users.
  4. Select New guest user.
    Shows where New guest user is in the UI
  5. Under User name, enter the email address of the external user. Optionally, include a welcome message. For example:
    Shows where New guest user is in the UI
  6. Select Invite to automatically send the invitation to the guest user.
After you send the invitation, the user account is automatically added to the directory as a guest.
Shows B2B user with Guest user type

Add guest users to a group

If you need to manually add B2B collaboration users to a group as an Azure AD administrator, follow these steps:
  1. Sign in to the Azure portal as an Azure AD administrator.
  2. In the navigation pane, select Azure Active Directory.
  3. Under Manage, select Groups.
  4. Select a group (or click New group to create a new one). It's a good idea to include in the group description that the group contains B2B guest users.
  5. Select Members.
  6. Do one of the following:
    • If the guest user already exists in the directory, search for the B2B user. Select the user, and then click Select to add the user to the group.
    • If the guest user does not already exist in the directory, invite them to the group by typing their email address in the search box, typing an optional personal message, and then clicking Select. The invitation automatically goes out to the invited user.
      Add invite button to add guest members

Add guest users to an application

To add B2B collaboration users to an application as an Azure AD administrator, follow these steps:
  1. Sign in to the Azure portal as an Azure AD administrator.
  2. In the navigation pane, select Azure Active Directory.
  3. Under Manage, select Enterprise applications > All applications.
  4. Select the application to which you want to add guest users.
  5. On the application's dashboard, select Total Users to open the Users and groups pane.
    Total Users button to add open Users and Groups
  6. Select Add user.
  7. Under Add Assignment, select User and groups.
  8. Do one of the following:
    • If the guest user already exists in the directory, search for the B2B user. Select the user, click Select, and then click Assign to add the user to the app.
    • If the guest user does not already exist in the directory, select Invite.
      Add invite button to add guest members
      Under Invite a guest, enter the email address, type an optional personal message, and then select Invite. Click Select, and then click Assign to add the user to the app. An invitation automatically goes out to the invited user.
  9. The guest user appears in the application's Users and groups list with the assigned role of Default Access. If you want to change the role, do the following:
    • Select the guest user, and then select Edit.
    • Under Edit Assignment, click Select Role, and select the role you want to assign to the selected user.
    • Click Select.
    • Click Assign.

Resend invitations to guest users

If a guest user has not yet redeemed their invitation, you can resend the invitation email.
  1. Sign in to the Azure portal as an Azure AD administrator.
  2. In the navigation pane, select Azure Active Directory.
  3. Under Manage, select Users.
  4. Select the user account.
  5. Under Manage, select Profile.
  6. If the user has not yet accepted the invitation, a Resend invitation option is available. Select this button to resend.
    Resend invitation option in the user profile

Tuesday, 17 July 2018

How to Add users to your Visual studio team services(VSTS) account or team project in Dynamics AX 365 Operations

Add users to your Visual Studio Team Services (VSTS) account and specify the level of features they can use, such as Basic or Stakeholder. These kinds of users can join your VSTS account for free:
  • 5 users who get Basic features, such as version control, tools for Agile, Java, build, release management, and more
  • Unlimited users who get Stakeholder features, such as working with your backlog, work items, and queries
  • Unlimited Visual Studio subscribers who also get Basic features, and in some cases, additional features with specific extensions, such as Test Manager
Note
You can add people to team projects, rather than to your account. VSTS automatically assigns them Basic features, if your account has seats available, or Stakeholder features, if not. Learn how to add members to team projects.
When people don't need access to your VSTS account anymore, delete them from your account.

How access differs from permissions

Access levels control which features are available to users, i.e. the full set of account resources that a user is entitled to access. Permissions then control which of these account resources the user can act on. To learn more, see Default permissions and access for VSTS and TFS

Prerequisites

You'll need [VSTS project collection administrator or account owner permissionsQuickstart: Add administrators, set permissions at the project-level or project collection-level.

Add users to your VSTS account

Administrators can now add users to an account, grant access to appropriate tooling extensions and service access level, and add users to groups all in one view. You can add up to 50 users at once. You can add more than 50 users by repeatedly using this Users view. When you add users, each receives a notification email with a link to the account page.
Note
If have an Azure Active Directory (Azure AD) backed VSTS account, and you need to add users who are external to your Azure AD, first add external users to your Azure AD. Be sure on the Tell us about this user page, under Type of user, to choose User with an existing Microsoft account. After completing those steps, follow the steps below to add the external Azure AD user to VSTS.
Provide others access to your account by adding their email address.
  1. Choose gear icon, the gear Settings icon, and choose the Account Settings option.
    Open Account Settings
  2. Choose Users and then choose Add new users to open the form.
    Open Add new users dialog
  3. Fill out the form.
    Web portal, account admin context, Add new users dialog
    • Users: Enter the Microsoft account (MSA) email address for the user account. You can add several email addresses by separating them with a semicolon (;). Note that in MSAs, the email addresses display in red.
    • Access level: Leave the Access level at Basic for those users who will contribute to the code base. To learn more, see About access levels.
    • Add to projects: Select the project that you named in the previous procedure.
    • VSTS Groups: Leave this entry at Project Contributors, the default security group for people who will contribute to your project. To learn more, see Default permissions and access assignments.
    • Choose Add to complete your invitation.

Original Post: https://docs.microsoft.com/en-us/vsts/organizations/accounts/add-account-users-from-user-hub?view=vsts

How to add external users to your Visual studio team services(VSTS) account Dynamics 365 Operations

If you’re an Azure Active Directory (Azure AD)-backed VSTS account user who wants to be able to collaborate with external users, you can invite an external user to your VSTS account. To do so, you must add the identities of your external users to your Azure AD and VSTS accounts. Doing this will also grant the user some additional privileges. Learn more about the additional account-level resources.

Prerequisites

  • You must set the policy 'External Guest Access' to 'On' for the account which you would like to invite external users to.
External Guest Access
  • You must be a member of the Project Collection Administrators group for the account which you would like to invite external users to.
  • The VSTS account, to which you want to invite external users, must allow for external invitations. Go to the account Settings page to confirm.
  • The Azure AD tenant, to which you want to invite external users, must allow you to add new users based on your AAD tenant’s guest policies. Learn how to become eligible to invite external users on your Azure AD tenant.

Invite external users to your VSTS account

  1. Sign in to your VSTS account (https://{youraccount}.visualstudio.com).
  2. Go to the Users tab in Settings.
  3. Choose Add new users.
  4. Enter the external user's email address followed by a semicolon, and then choose Add. A warning message will appear indicating that an external user is being added from outside of your directory.
Add external user to VSTS
  1. Advise the external user to locate the email they received from VSTS and go to the redemption URL. The external user must navigate through an Azure B2B redemption experience, which will add the user to your tenant.
Note
If you need to resend the invitation email, go to the Users page, select the user, and choose Resend invite.
The external user is added to the VSTS account to which they were invited and has immediate access

Actual Post: https://docs.microsoft.com/en-us/vsts/organizations/accounts/add-external-user?view=vsts

Friday, 6 July 2018

Stop script for service model: AOSService on machine : Application configuration sync failed. Custom action sync failed with error: 'ArgumentException:Couldn't find id for class AxPingHelper in Dynamics 365/AX

Hi,

while deploying the deployable package in sandbox through LCS I got  the below error and failed at stage 11.


Stop script for service model: AOSService on machine


7/06/2018 16:29:33: Application configuration sync failed. Custom action sync failed with error: 'ArgumentException:Couldn't find id for class AxPingHelper
   at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RunStaticXppMethod(String className, String methodName, String methodInput, String partitionName)
   at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass28_0.<RunCustomAction>b__0()
   at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)'
07/06/2018 16:29:33: The operation failed.



Reason: In my case, the problem was with the BI server login issue and the report server databases were in recovery mode.

Solution: Enabled the database access for "Local admin"  account and set the databases online. 


How to get label from Enum Value in AX x++

Hi,
Below is the code we can use for getting the label for an enum.In this example I'm taking InventTransType enum.

    SysDictEnum dictEnum = new SysDictEnum( enumnum(InventTransType) ); 

   dictEnum.value2Label(InventTrans.TransType);

       or 
 // If you want to assign the label to string
   dictEnum.index2Name(InventTrans.TransType);

Monday, 2 July 2018

How to get Product Variants from AX Using X++

Below is the X++ query for getting the product variants.


InventDimCombination inventDimCombination;
InventDim                     inventDim;

while select inventDimCombination

   where inventDimCombination.ItemId == '1000'

      join inventDim

          where inventDim.inventDimId == inventDimCombination.InventDimId

  {

      info(strFmt('%1 : %2 : %3 : %4 : %5',

             inventDimCombination.DistinctProductVariant,

             inventDim.configId,

             inventDim.InventColorId,

             inventDim.InventSizeId,

             inventDim.InventStyleId));     

  }

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...