GN integration changes

* Make layer public now update metadata privileges. #87023
* Obtain metadataId from properties to show it #87025