code: func (m *Manager) UpdateRequiredScope(globalId string, oldRequiredScope string, newRequiredScope RequiredScope) error {
  	qry := bson.M{
  		"globalid":             globalId,
  		"requiredscopes.scope": oldRequiredScope,
  	}
  	update := bson.M{
  		"$set": bson.M{
  			"requiredscopes.$": newRequiredScope,
  		},
  	}
  	return m.collection.Update(qry, update)
  }
docs: // UpdateRequiredScope updates a required scope