Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13691

'user' lifecycle attribute sent to add-on is the same as 'principal'

    XMLWordPrintable

Details

    Description

      While developing a Bitbucket add-on I noticed the user lifecycle attribute sent to my add-on on installation is the same as the principal attribute even though I installed the add-on for a team, as a user (that is part of said team).

      I.e, I get:

      {
      	"productType": "bitbucket",
      	"principal": {
      		"username": "productize",
      		"website": "https://productize.be/",
      		"display_name": "productize",
      		"uuid": "{8d07dd4d-...
      		"type": "team"
      	},
      	"user": {
      		"username": "productize",
      		...
      		"uuid": "{8d07dd4d-...
      		"type": "team"
      	},
          ...
      }
      

      While I would expect something like:

      {
      	"productType": "bitbucket",
      	"principal": {
      		"username": "productize",
      		"website": "https://productize.be/",
      		"display_name": "productize",
      		"uuid": "{8d07dd4d- ...
      		"type": "team",
      		...
      	},
      	"user": {
      		"username": "seppestas",
      		"website": "https://sep.pe/",
      		"display_name": "seppestas",
      		"type": "user",
      		...
      	},
      	...
      }
      

      Which would be a lot more useful for e.g security auditing purposes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            48f00a7333f7 Seppe Stas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: