AnsweredAssumed Answered

Access Level Change

Question asked by rteniere on Feb 8, 2018
Latest reply on Feb 8, 2018 by rteniere

I have been trying to change the access level of map layers with no luck. I have used 'org' as the access value, however, it keeps showing up as private after it is created. Here is a code sample:

layerProperties_Wildlife = {
'title':'Wildlife Areas',
'description':'This layer contains data for moose and deer management zones, Significant Habitats, Wetlands, and Special Management Practices for Atlantic Coastal Plain Flora Buffers, Marten, Lynx, and Mainland Moose.',
'snippet':'Wildlife Areas layer',
'tags':'wildlife,wetlands,moose,deer,habitat,marten,lynx,moose,NSGI,GeoNOVA',
'licenseInfo':licInfo,
'accessInformation':'Nova Scotia Department of Natural Resources',
'type':'Map Service',
'access':'org',
'url':os.path.join(devURL,'BIO/'+svcName_Wildlife+'/MapServer')
}

layer = gis.content.add(item_properties=layerProperties_Wildlife, thumbnail=thumbnailPath, owner=layerOwner, folder=layerFolder)
layer.access
->'private'

Outcomes