BizTalk Server: Cannot see my BAM View in BAM Portal after I deploy it

  • Sandro Pereira
  • May 2, 2013
  • 2 min read

It´s a common factor that before users can view data from a BAM model in the BAM Portal website, they must be granted access to the views. However, and contrary to what I thought, the user who makes the deployment of the BAM Definition doesn’t necessarily have access to this particular view in the BAM Portal! (I was being misled because usually, I am the owner… hehe).

BAM Portal Missing View

Instead, the only user that always has access to the view and cannot be added to or removed from the view(s) is the Database Owner (BAMPrimaryImport)!

📝 One-Minute Brief

If you’ve successfully deployed your BAM definition but can’t see the views in the BAM Portal, the issue is likely missing permissions. Unlike the deployment user, specific viewers must be explicitly granted access to each BAM View. This guide explains how to use the bm.exe command-line tool to add users or groups to a BAM view so they appear correctly in the portal.

You can check who the database owner is by running the following query:

[sourcecode language="sql"]
SELECT SUSER_SNAME(owner_sid),name
FROM sys.DATABASES

So after I run this query, I realize that another user was the owner, and to solve this “problem”, I had to give permissions to my user to access this View in the BAM Portal by running the following BAM Management Utility command:

bm.exe add-account -AccountName:DOMAIN\USER -View:MyView
BAM Portal With View

Mystery solved.

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

1 thought on “BizTalk Server: Cannot see my BAM View in BAM Portal after I deploy it”

  1. we are also facing the same issue, but SQL Query is not fetching any expired users list,
    how to resolve the issue, your help will be extremely helpful for us

Leave a Reply

Your email address will not be published. Required fields are marked *

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top