Book a Demo

Author Topic: Configure Stereotypes permission required to create stereotyped packages  (Read 3528 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
We have a script that creates «master document» packages for document generation.
This has been working for us until we decided to review the user permissions.
We removed the permission "Configure Stereotype" from the regular users as they are not supposed to create or modify stereotypes.
After this change, when our users ran the script to create the virtual document, the created package didn't get the «master document» stereotype.
Adding the permission "configure stereotypes" resolved the issue.

The relevant code we use to create the virtual document:

Code: [Select]
dim masterDocumentPackage as EA.Package
set masterDocumentPackage = ownerPackage.Packages.AddNew(documentName, "package")
masterDocumentPackage.Update
masterDocumentPackage.StereotypeEx = "EAUML::master document"
masterDocumentPackage.Alias = domainName
masterDocumentPackage.Update

Reported

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Configure Stereotypes permission required to create stereotyped packages
« Reply #1 on: November 05, 2020, 09:51:53 pm »
Damned, busted my toe on this one again this morning.

Took me a while to remember this particular bug. Another hour of my life I'm not getting back :-\

Geert