Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created July 7, 2017 18:57
Show Gist options
  • Save ableasdale/ab2c14646977facb9628c45253bd1fc5 to your computer and use it in GitHub Desktop.
Save ableasdale/ab2c14646977facb9628c45253bd1fc5 to your computer and use it in GitHub Desktop.
MarkLogic: A technique for separating out user created users, privileges and roles from MarkLogic managed ones.
xquery version "1.0-ml";
declare function local:seq-contains($string as xs:string, $search-strings as xs:string+) as xs:boolean {
some $search-string in $search-strings satisfies ($string eq $search-string)
};
declare variable $SECURITY-DATABASE-NAME as xs:string := "Security-Extra";
declare variable $ML5-DEFAULT-SECURITY-URIS as xs:string+ := (
"http://marklogic.com/xdmp/amps/10036407012685036038",
"http://marklogic.com/xdmp/amps/10237823865736648098",
"http://marklogic.com/xdmp/amps/1026070884479828774",
"http://marklogic.com/xdmp/amps/1035301196795230028",
"http://marklogic.com/xdmp/amps/10416240567550348218",
"http://marklogic.com/xdmp/amps/10434461600671766650",
"http://marklogic.com/xdmp/amps/10481639978693094544",
"http://marklogic.com/xdmp/amps/10497338192939818142",
"http://marklogic.com/xdmp/amps/10511247395118310200",
"http://marklogic.com/xdmp/amps/10651091519631719903",
"http://marklogic.com/xdmp/amps/10715502825488027368",
"http://marklogic.com/xdmp/amps/10720143494021673790",
"http://marklogic.com/xdmp/amps/10821274014724527325",
"http://marklogic.com/xdmp/amps/10833931878106878838",
"http://marklogic.com/xdmp/amps/10834146462858233669",
"http://marklogic.com/xdmp/amps/10873967833347027594",
"http://marklogic.com/xdmp/amps/10877793688461788732",
"http://marklogic.com/xdmp/amps/10913900248574282055",
"http://marklogic.com/xdmp/amps/10919868995852706747",
"http://marklogic.com/xdmp/amps/10969384264112078437",
"http://marklogic.com/xdmp/amps/10984569266095999896",
"http://marklogic.com/xdmp/amps/1100317866187423977",
"http://marklogic.com/xdmp/amps/11037126888972062053",
"http://marklogic.com/xdmp/amps/11055937662007629662",
"http://marklogic.com/xdmp/amps/11071076260866263645",
"http://marklogic.com/xdmp/amps/11295836892250531086",
"http://marklogic.com/xdmp/amps/11320612750857064856",
"http://marklogic.com/xdmp/amps/11330417673091365397",
"http://marklogic.com/xdmp/amps/11516004515459828232",
"http://marklogic.com/xdmp/amps/1153091662870291888",
"http://marklogic.com/xdmp/amps/11560308405237133706",
"http://marklogic.com/xdmp/amps/11580492588847347943",
"http://marklogic.com/xdmp/amps/11629008121501733529",
"http://marklogic.com/xdmp/amps/1165250980386535531",
"http://marklogic.com/xdmp/amps/11684895391565870631",
"http://marklogic.com/xdmp/amps/11752150590501824571",
"http://marklogic.com/xdmp/amps/11782148961209266329",
"http://marklogic.com/xdmp/amps/11877663672129202950",
"http://marklogic.com/xdmp/amps/11892511403540917276",
"http://marklogic.com/xdmp/amps/1193060042170525722",
"http://marklogic.com/xdmp/amps/11985106679253279089",
"http://marklogic.com/xdmp/amps/12007927059668177608",
"http://marklogic.com/xdmp/amps/12096601490974794795",
"http://marklogic.com/xdmp/amps/12120179212520429759",
"http://marklogic.com/xdmp/amps/12153870649641290656",
"http://marklogic.com/xdmp/amps/12195390667215716802",
"http://marklogic.com/xdmp/amps/12264548797994437379",
"http://marklogic.com/xdmp/amps/12336953416315424815",
"http://marklogic.com/xdmp/amps/12496265217174284553",
"http://marklogic.com/xdmp/amps/12542162101358847930",
"http://marklogic.com/xdmp/amps/1255055409388450703",
"http://marklogic.com/xdmp/amps/12861891784963157872",
"http://marklogic.com/xdmp/amps/12950170373739169890",
"http://marklogic.com/xdmp/amps/13073557280373125613",
"http://marklogic.com/xdmp/amps/13106500098120953042",
"http://marklogic.com/xdmp/amps/1314410530060332648",
"http://marklogic.com/xdmp/amps/13197053200862701046",
"http://marklogic.com/xdmp/amps/13260518608064157561",
"http://marklogic.com/xdmp/amps/13328817306659982290",
"http://marklogic.com/xdmp/amps/13498381720975687123",
"http://marklogic.com/xdmp/amps/13585395961653047505",
"http://marklogic.com/xdmp/amps/1365634972548313962",
"http://marklogic.com/xdmp/amps/13676457661823452938",
"http://marklogic.com/xdmp/amps/13837153115375065271",
"http://marklogic.com/xdmp/amps/13866303809461060248",
"http://marklogic.com/xdmp/amps/13972261317661450618",
"http://marklogic.com/xdmp/amps/13975187346565963075",
"http://marklogic.com/xdmp/amps/14073388751804566063",
"http://marklogic.com/xdmp/amps/14168613726654568094",
"http://marklogic.com/xdmp/amps/1417384618454334464",
"http://marklogic.com/xdmp/amps/14185259233479654344",
"http://marklogic.com/xdmp/amps/14206286062399429871",
"http://marklogic.com/xdmp/amps/14280381032520301291",
"http://marklogic.com/xdmp/amps/14403555041171645372",
"http://marklogic.com/xdmp/amps/14410948803829352971",
"http://marklogic.com/xdmp/amps/14420212340340527314",
"http://marklogic.com/xdmp/amps/1451030494428928002",
"http://marklogic.com/xdmp/amps/14668372823791078815",
"http://marklogic.com/xdmp/amps/14744391765201493349",
"http://marklogic.com/xdmp/amps/1479748091057813915",
"http://marklogic.com/xdmp/amps/14817201684005012029",
"http://marklogic.com/xdmp/amps/14851747518506844435",
"http://marklogic.com/xdmp/amps/14854336522017755744",
"http://marklogic.com/xdmp/amps/14904896508763394111",
"http://marklogic.com/xdmp/amps/14914038913308925034",
"http://marklogic.com/xdmp/amps/14985714771537300971",
"http://marklogic.com/xdmp/amps/15044001088163287583",
"http://marklogic.com/xdmp/amps/15232177576358449643",
"http://marklogic.com/xdmp/amps/1529897347007521462",
"http://marklogic.com/xdmp/amps/15413952436023420871",
"http://marklogic.com/xdmp/amps/15444144583533991784",
"http://marklogic.com/xdmp/amps/15466355373216933252",
"http://marklogic.com/xdmp/amps/15470076231219613821",
"http://marklogic.com/xdmp/amps/15475953258517999289",
"http://marklogic.com/xdmp/amps/15497809665269324074",
"http://marklogic.com/xdmp/amps/15541444621040573233",
"http://marklogic.com/xdmp/amps/15663227944854780028",
"http://marklogic.com/xdmp/amps/15753173691697991273",
"http://marklogic.com/xdmp/amps/1577153717891314728",
"http://marklogic.com/xdmp/amps/15877952726440666187",
"http://marklogic.com/xdmp/amps/15959012910293924587",
"http://marklogic.com/xdmp/amps/15979505015867423864",
"http://marklogic.com/xdmp/amps/15984774012796721994",
"http://marklogic.com/xdmp/amps/16085079233200357134",
"http://marklogic.com/xdmp/amps/16204466335555654202",
"http://marklogic.com/xdmp/amps/16249716148254364394",
"http://marklogic.com/xdmp/amps/1635239634296209056",
"http://marklogic.com/xdmp/amps/16365621805885137685",
"http://marklogic.com/xdmp/amps/16369496827504295780",
"http://marklogic.com/xdmp/amps/16545454287004774141",
"http://marklogic.com/xdmp/amps/16555862106198766293",
"http://marklogic.com/xdmp/amps/16638733935893563020",
"http://marklogic.com/xdmp/amps/16666294193669428766",
"http://marklogic.com/xdmp/amps/16798799341381135996",
"http://marklogic.com/xdmp/amps/16811789466897432263",
"http://marklogic.com/xdmp/amps/16821139884721185318",
"http://marklogic.com/xdmp/amps/16874221878393890522",
"http://marklogic.com/xdmp/amps/16915949001978872632",
"http://marklogic.com/xdmp/amps/17030560505746941397",
"http://marklogic.com/xdmp/amps/17109002217447625424",
"http://marklogic.com/xdmp/amps/17205060599750447417",
"http://marklogic.com/xdmp/amps/17445086710660701957",
"http://marklogic.com/xdmp/amps/17449024828577430593",
"http://marklogic.com/xdmp/amps/17507795665653427647",
"http://marklogic.com/xdmp/amps/17512491376060968594",
"http://marklogic.com/xdmp/amps/17603996819461641344",
"http://marklogic.com/xdmp/amps/1761932438134818505",
"http://marklogic.com/xdmp/amps/17653516464789088996",
"http://marklogic.com/xdmp/amps/17680540262940869733",
"http://marklogic.com/xdmp/amps/1771224161150449801",
"http://marklogic.com/xdmp/amps/17713812436032450087",
"http://marklogic.com/xdmp/amps/17876503169933813068",
"http://marklogic.com/xdmp/amps/17918787131981827315",
"http://marklogic.com/xdmp/amps/17949300922845932728",
"http://marklogic.com/xdmp/amps/17958913126302778182",
"http://marklogic.com/xdmp/amps/18035316119700822602",
"http://marklogic.com/xdmp/amps/18054394757365472749",
"http://marklogic.com/xdmp/amps/18173629370111317439",
"http://marklogic.com/xdmp/amps/18221105084318208525",
"http://marklogic.com/xdmp/amps/18304504640690816281",
"http://marklogic.com/xdmp/amps/18351100107543194343",
"http://marklogic.com/xdmp/amps/1838882875199348165",
"http://marklogic.com/xdmp/amps/1926856421988773817",
"http://marklogic.com/xdmp/amps/2097052233128334900",
"http://marklogic.com/xdmp/amps/2155707341842985775",
"http://marklogic.com/xdmp/amps/2173210595444148126",
"http://marklogic.com/xdmp/amps/2190745436227573212",
"http://marklogic.com/xdmp/amps/2206696998935859232",
"http://marklogic.com/xdmp/amps/2237864717043867466",
"http://marklogic.com/xdmp/amps/2287097537651972462",
"http://marklogic.com/xdmp/amps/235889962909698013",
"http://marklogic.com/xdmp/amps/236431809317130414",
"http://marklogic.com/xdmp/amps/2399255913800925389",
"http://marklogic.com/xdmp/amps/2555275162493975691",
"http://marklogic.com/xdmp/amps/2622041731901786762",
"http://marklogic.com/xdmp/amps/2695316565135212772",
"http://marklogic.com/xdmp/amps/2716343457979054117",
"http://marklogic.com/xdmp/amps/2733054063335413637",
"http://marklogic.com/xdmp/amps/2740905844334365989",
"http://marklogic.com/xdmp/amps/2797621876908225778",
"http://marklogic.com/xdmp/amps/2819752882522394013",
"http://marklogic.com/xdmp/amps/2854339632666666385",
"http://marklogic.com/xdmp/amps/287191219330143649",
"http://marklogic.com/xdmp/amps/2979347044065736943",
"http://marklogic.com/xdmp/amps/2991925664478109317",
"http://marklogic.com/xdmp/amps/306787588185084220",
"http://marklogic.com/xdmp/amps/3154346424942060701",
"http://marklogic.com/xdmp/amps/3282337582248162499",
"http://marklogic.com/xdmp/amps/3311803195558131663",
"http://marklogic.com/xdmp/amps/3362829310846312435",
"http://marklogic.com/xdmp/amps/3543635899653955435",
"http://marklogic.com/xdmp/amps/3779914782546097859",
"http://marklogic.com/xdmp/amps/3809720073138065993",
"http://marklogic.com/xdmp/amps/3848191684538709640",
"http://marklogic.com/xdmp/amps/4078650738618566805",
"http://marklogic.com/xdmp/amps/4101274108880216162",
"http://marklogic.com/xdmp/amps/4117905807741541244",
"http://marklogic.com/xdmp/amps/4223168623542236755",
"http://marklogic.com/xdmp/amps/4274182208082828269",
"http://marklogic.com/xdmp/amps/4285412874136941711",
"http://marklogic.com/xdmp/amps/4433232302581469175",
"http://marklogic.com/xdmp/amps/4446647737974081890",
"http://marklogic.com/xdmp/amps/4618723053527000908",
"http://marklogic.com/xdmp/amps/4623968196919855136",
"http://marklogic.com/xdmp/amps/46967691447690952",
"http://marklogic.com/xdmp/amps/4764995736690591185",
"http://marklogic.com/xdmp/amps/4768463715124828284",
"http://marklogic.com/xdmp/amps/4837309046663653287",
"http://marklogic.com/xdmp/amps/4855864924623673018",
"http://marklogic.com/xdmp/amps/4958415947378595421",
"http://marklogic.com/xdmp/amps/4985487640059557468",
"http://marklogic.com/xdmp/amps/5081793501426185706",
"http://marklogic.com/xdmp/amps/5152572777924372167",
"http://marklogic.com/xdmp/amps/5179865086510122486",
"http://marklogic.com/xdmp/amps/5218193121123173679",
"http://marklogic.com/xdmp/amps/5232822754350890619",
"http://marklogic.com/xdmp/amps/5270351121003683966",
"http://marklogic.com/xdmp/amps/5518312287581601203",
"http://marklogic.com/xdmp/amps/5704541405215514606",
"http://marklogic.com/xdmp/amps/5716540619083564507",
"http://marklogic.com/xdmp/amps/5795178801322572860",
"http://marklogic.com/xdmp/amps/586849505802694079",
"http://marklogic.com/xdmp/amps/5881708928238830684",
"http://marklogic.com/xdmp/amps/5944628708527100700",
"http://marklogic.com/xdmp/amps/6017610400846019108",
"http://marklogic.com/xdmp/amps/6032403886904424666",
"http://marklogic.com/xdmp/amps/6117565791635807186",
"http://marklogic.com/xdmp/amps/6161972211833013300",
"http://marklogic.com/xdmp/amps/6179609015492145437",
"http://marklogic.com/xdmp/amps/6317429405995558327",
"http://marklogic.com/xdmp/amps/6317530817482990218",
"http://marklogic.com/xdmp/amps/6384068520942804068",
"http://marklogic.com/xdmp/amps/6411423161175260382",
"http://marklogic.com/xdmp/amps/6562569530673568520",
"http://marklogic.com/xdmp/amps/6666625079103274790",
"http://marklogic.com/xdmp/amps/6684056133689258382",
"http://marklogic.com/xdmp/amps/6695522293557384226",
"http://marklogic.com/xdmp/amps/6704086606932326889",
"http://marklogic.com/xdmp/amps/673279652810054524",
"http://marklogic.com/xdmp/amps/6749835741036446758",
"http://marklogic.com/xdmp/amps/6883546605560094324",
"http://marklogic.com/xdmp/amps/6892644226509825149",
"http://marklogic.com/xdmp/amps/6938606273555348321",
"http://marklogic.com/xdmp/amps/729920376615284510",
"http://marklogic.com/xdmp/amps/7419817853946687617",
"http://marklogic.com/xdmp/amps/7423138889470132762",
"http://marklogic.com/xdmp/amps/7585024858751963383",
"http://marklogic.com/xdmp/amps/7619147490283427308",
"http://marklogic.com/xdmp/amps/7630531295707462397",
"http://marklogic.com/xdmp/amps/765130513811642975",
"http://marklogic.com/xdmp/amps/7658200796495219258",
"http://marklogic.com/xdmp/amps/7667863659776378494",
"http://marklogic.com/xdmp/amps/7745160860395693573",
"http://marklogic.com/xdmp/amps/794684607240044288",
"http://marklogic.com/xdmp/amps/8060209838349192763",
"http://marklogic.com/xdmp/amps/8122686749068801714",
"http://marklogic.com/xdmp/amps/8135228007851894724",
"http://marklogic.com/xdmp/amps/8159421174686856484",
"http://marklogic.com/xdmp/amps/8169525479026049371",
"http://marklogic.com/xdmp/amps/8189210504252292179",
"http://marklogic.com/xdmp/amps/8190402102990758450",
"http://marklogic.com/xdmp/amps/8289127110109331991",
"http://marklogic.com/xdmp/amps/8363355583082761315",
"http://marklogic.com/xdmp/amps/8379934313674828292",
"http://marklogic.com/xdmp/amps/8423406815117875346",
"http://marklogic.com/xdmp/amps/8433051863819873439",
"http://marklogic.com/xdmp/amps/8502274659456320287",
"http://marklogic.com/xdmp/amps/8519311147369364905",
"http://marklogic.com/xdmp/amps/8569976289641192422",
"http://marklogic.com/xdmp/amps/866021728186332744",
"http://marklogic.com/xdmp/amps/8690662925539130000",
"http://marklogic.com/xdmp/amps/8694772846220262494",
"http://marklogic.com/xdmp/amps/8699795909888369809",
"http://marklogic.com/xdmp/amps/8728937848197292959",
"http://marklogic.com/xdmp/amps/8781516908189278889",
"http://marklogic.com/xdmp/amps/8883003495336350782",
"http://marklogic.com/xdmp/amps/891541378842663734",
"http://marklogic.com/xdmp/amps/8936556457768365958",
"http://marklogic.com/xdmp/amps/911760246609925717",
"http://marklogic.com/xdmp/amps/916589418041155492",
"http://marklogic.com/xdmp/amps/9229443996400763746",
"http://marklogic.com/xdmp/amps/9538494583341806360",
"http://marklogic.com/xdmp/amps/961106877753559079",
"http://marklogic.com/xdmp/amps/9652880882381766833",
"http://marklogic.com/xdmp/amps/972810255962614372",
"http://marklogic.com/xdmp/amps/9742897444979388950",
"http://marklogic.com/xdmp/amps/9771766196214024927",
"http://marklogic.com/xdmp/amps/9800373543694079382",
"http://marklogic.com/xdmp/amps/9843741434687707869",
"http://marklogic.com/xdmp/amps/9853700786584218859",
"http://marklogic.com/xdmp/amps/9900001317507290776",
"http://marklogic.com/xdmp/amps/9907401648401301202",
"http://marklogic.com/xdmp/collections/11434830478882802398",
"http://marklogic.com/xdmp/collections/152328765303085001",
"http://marklogic.com/xdmp/collections/15393615281549148464",
"http://marklogic.com/xdmp/collections/1722574880871638073",
"http://marklogic.com/xdmp/collections/5922349495980521094",
"http://marklogic.com/xdmp/metadata.xml",
"http://marklogic.com/xdmp/pki/certificates/10111871942969406061.xml",
"http://marklogic.com/xdmp/pki/certificates/10298110801880912935.xml",
"http://marklogic.com/xdmp/pki/certificates/10490287773124137697.xml",
"http://marklogic.com/xdmp/pki/certificates/10646444765821607179.xml",
"http://marklogic.com/xdmp/pki/certificates/1065007558536891105.xml",
"http://marklogic.com/xdmp/pki/certificates/10762524262482891462.xml",
"http://marklogic.com/xdmp/pki/certificates/10788826506418985596.xml",
"http://marklogic.com/xdmp/pki/certificates/10869277698071000291.xml",
"http://marklogic.com/xdmp/pki/certificates/10882004987438280701.xml",
"http://marklogic.com/xdmp/pki/certificates/11253510178254837606.xml",
"http://marklogic.com/xdmp/pki/certificates/11895718629723706245.xml",
"http://marklogic.com/xdmp/pki/certificates/11915284179876600219.xml",
"http://marklogic.com/xdmp/pki/certificates/1200769619248428558.xml",
"http://marklogic.com/xdmp/pki/certificates/12078965954015466804.xml",
"http://marklogic.com/xdmp/pki/certificates/12239363310169063826.xml",
"http://marklogic.com/xdmp/pki/certificates/12300331430192561692.xml",
"http://marklogic.com/xdmp/pki/certificates/12449952026092721291.xml",
"http://marklogic.com/xdmp/pki/certificates/12475958226100665647.xml",
"http://marklogic.com/xdmp/pki/certificates/12733861765565053887.xml",
"http://marklogic.com/xdmp/pki/certificates/12820754919986706653.xml",
"http://marklogic.com/xdmp/pki/certificates/12963481832765350455.xml",
"http://marklogic.com/xdmp/pki/certificates/13101883778139380576.xml",
"http://marklogic.com/xdmp/pki/certificates/13334893520964448293.xml",
"http://marklogic.com/xdmp/pki/certificates/13564604444506535896.xml",
"http://marklogic.com/xdmp/pki/certificates/13687507322294343050.xml",
"http://marklogic.com/xdmp/pki/certificates/13892398683207385586.xml",
"http://marklogic.com/xdmp/pki/certificates/13940629428488161983.xml",
"http://marklogic.com/xdmp/pki/certificates/13962066847824280351.xml",
"http://marklogic.com/xdmp/pki/certificates/14017238764469013513.xml",
"http://marklogic.com/xdmp/pki/certificates/14048868386629568232.xml",
"http://marklogic.com/xdmp/pki/certificates/14248216465642938329.xml",
"http://marklogic.com/xdmp/pki/certificates/14315234144329361534.xml",
"http://marklogic.com/xdmp/pki/certificates/14441110408967236197.xml",
"http://marklogic.com/xdmp/pki/certificates/14484613607199913801.xml",
"http://marklogic.com/xdmp/pki/certificates/14520883892125732958.xml",
"http://marklogic.com/xdmp/pki/certificates/15110305860009709909.xml",
"http://marklogic.com/xdmp/pki/certificates/15143977688825043963.xml",
"http://marklogic.com/xdmp/pki/certificates/15169846799273891436.xml",
"http://marklogic.com/xdmp/pki/certificates/1525687445869945016.xml",
"http://marklogic.com/xdmp/pki/certificates/15652664863884581584.xml",
"http://marklogic.com/xdmp/pki/certificates/15923721141909563338.xml",
"http://marklogic.com/xdmp/pki/certificates/1595028574822187886.xml",
"http://marklogic.com/xdmp/pki/certificates/16185033518279622036.xml",
"http://marklogic.com/xdmp/pki/certificates/16288651989701806716.xml",
"http://marklogic.com/xdmp/pki/certificates/16335150476379567554.xml",
"http://marklogic.com/xdmp/pki/certificates/16454285722080746073.xml",
"http://marklogic.com/xdmp/pki/certificates/16913701370236349629.xml",
"http://marklogic.com/xdmp/pki/certificates/1692594002613741932.xml",
"http://marklogic.com/xdmp/pki/certificates/17270114551015942000.xml",
"http://marklogic.com/xdmp/pki/certificates/17631169621284022559.xml",
"http://marklogic.com/xdmp/pki/certificates/17779110901254153008.xml",
"http://marklogic.com/xdmp/pki/certificates/18118261325143107438.xml",
"http://marklogic.com/xdmp/pki/certificates/18158646622499210692.xml",
"http://marklogic.com/xdmp/pki/certificates/18204423465888939743.xml",
"http://marklogic.com/xdmp/pki/certificates/18424699669065434460.xml",
"http://marklogic.com/xdmp/pki/certificates/18424983421408459537.xml",
"http://marklogic.com/xdmp/pki/certificates/1933128353111954019.xml",
"http://marklogic.com/xdmp/pki/certificates/2084857486639022794.xml",
"http://marklogic.com/xdmp/pki/certificates/2201326015317313999.xml",
"http://marklogic.com/xdmp/pki/certificates/2212371745820349650.xml",
"http://marklogic.com/xdmp/pki/certificates/2633599565523951733.xml",
"http://marklogic.com/xdmp/pki/certificates/3099679784037555860.xml",
"http://marklogic.com/xdmp/pki/certificates/3113581679153816299.xml",
"http://marklogic.com/xdmp/pki/certificates/3157819674558121599.xml",
"http://marklogic.com/xdmp/pki/certificates/3176293685215437437.xml",
"http://marklogic.com/xdmp/pki/certificates/3257975108414891968.xml",
"http://marklogic.com/xdmp/pki/certificates/3650157615734016950.xml",
"http://marklogic.com/xdmp/pki/certificates/3710197731632301281.xml",
"http://marklogic.com/xdmp/pki/certificates/3902808000481096225.xml",
"http://marklogic.com/xdmp/pki/certificates/3987216415356569605.xml",
"http://marklogic.com/xdmp/pki/certificates/4206918268373409958.xml",
"http://marklogic.com/xdmp/pki/certificates/422186371303933223.xml",
"http://marklogic.com/xdmp/pki/certificates/4238231629188576834.xml",
"http://marklogic.com/xdmp/pki/certificates/4309990238130128148.xml",
"http://marklogic.com/xdmp/pki/certificates/4391309931450365163.xml",
"http://marklogic.com/xdmp/pki/certificates/4418330748281423803.xml",
"http://marklogic.com/xdmp/pki/certificates/4465870193247950893.xml",
"http://marklogic.com/xdmp/pki/certificates/4508654855647170973.xml",
"http://marklogic.com/xdmp/pki/certificates/4554916301008210717.xml",
"http://marklogic.com/xdmp/pki/certificates/4592561405916780286.xml",
"http://marklogic.com/xdmp/pki/certificates/461075792574620921.xml",
"http://marklogic.com/xdmp/pki/certificates/4672508441161236345.xml",
"http://marklogic.com/xdmp/pki/certificates/4751448752509786629.xml",
"http://marklogic.com/xdmp/pki/certificates/475345881414393788.xml",
"http://marklogic.com/xdmp/pki/certificates/4821245458699611114.xml",
"http://marklogic.com/xdmp/pki/certificates/4839813765037453268.xml",
"http://marklogic.com/xdmp/pki/certificates/5041742973421240714.xml",
"http://marklogic.com/xdmp/pki/certificates/5102076781729015809.xml",
"http://marklogic.com/xdmp/pki/certificates/5139184232023377840.xml",
"http://marklogic.com/xdmp/pki/certificates/5259192566285477801.xml",
"http://marklogic.com/xdmp/pki/certificates/5278524344806444937.xml",
"http://marklogic.com/xdmp/pki/certificates/5362211561721529365.xml",
"http://marklogic.com/xdmp/pki/certificates/5624931569937015644.xml",
"http://marklogic.com/xdmp/pki/certificates/5780802838794117840.xml",
"http://marklogic.com/xdmp/pki/certificates/6144580063729835429.xml",
"http://marklogic.com/xdmp/pki/certificates/6390549198246703848.xml",
"http://marklogic.com/xdmp/pki/certificates/7023145713070912251.xml",
"http://marklogic.com/xdmp/pki/certificates/7180735719527300125.xml",
"http://marklogic.com/xdmp/pki/certificates/7290479111347557570.xml",
"http://marklogic.com/xdmp/pki/certificates/7334780499413349261.xml",
"http://marklogic.com/xdmp/pki/certificates/7538850458603805740.xml",
"http://marklogic.com/xdmp/pki/certificates/7891912207148447229.xml",
"http://marklogic.com/xdmp/pki/certificates/7907898196047715626.xml",
"http://marklogic.com/xdmp/pki/certificates/8020575344465055689.xml",
"http://marklogic.com/xdmp/pki/certificates/8114309455866932396.xml",
"http://marklogic.com/xdmp/pki/certificates/8277920163426831473.xml",
"http://marklogic.com/xdmp/pki/certificates/8378593584107629189.xml",
"http://marklogic.com/xdmp/pki/certificates/8468014666952117483.xml",
"http://marklogic.com/xdmp/pki/certificates/8481628404264030772.xml",
"http://marklogic.com/xdmp/pki/certificates/8523350106593750874.xml",
"http://marklogic.com/xdmp/pki/certificates/8545694865132783618.xml",
"http://marklogic.com/xdmp/pki/certificates/8852296318381260513.xml",
"http://marklogic.com/xdmp/pki/certificates/8961364530736691669.xml",
"http://marklogic.com/xdmp/pki/certificates/8976330755924527238.xml",
"http://marklogic.com/xdmp/pki/certificates/9449935328411771255.xml",
"http://marklogic.com/xdmp/pki/certificates/956933414288480978.xml",
"http://marklogic.com/xdmp/pki/certificates/9771872781295843288.xml",
"http://marklogic.com/xdmp/pki/certificates/9896042656019100245.xml",
"http://marklogic.com/xdmp/pki/certificates/9905517926035591133.xml",
"http://marklogic.com/xdmp/privileges/10004780038685469818",
"http://marklogic.com/xdmp/privileges/10119868542947225630",
"http://marklogic.com/xdmp/privileges/10156425134711006699",
"http://marklogic.com/xdmp/privileges/10350770802102009577",
"http://marklogic.com/xdmp/privileges/10455055514434812525",
"http://marklogic.com/xdmp/privileges/10527675888199920587",
"http://marklogic.com/xdmp/privileges/10613897223707461239",
"http://marklogic.com/xdmp/privileges/10857871833680420245",
"http://marklogic.com/xdmp/privileges/10879161147721588969",
"http://marklogic.com/xdmp/privileges/1092685421060048159",
"http://marklogic.com/xdmp/privileges/11116144429666728472",
"http://marklogic.com/xdmp/privileges/1112996934616303165",
"http://marklogic.com/xdmp/privileges/11138799641783400126",
"http://marklogic.com/xdmp/privileges/11159731316739976482",
"http://marklogic.com/xdmp/privileges/11389311738316254498",
"http://marklogic.com/xdmp/privileges/11464327794926791055",
"http://marklogic.com/xdmp/privileges/11518963216549262806",
"http://marklogic.com/xdmp/privileges/11607294957314704354",
"http://marklogic.com/xdmp/privileges/11616370136124139580",
"http://marklogic.com/xdmp/privileges/11687344041879395516",
"http://marklogic.com/xdmp/privileges/11808760362020966055",
"http://marklogic.com/xdmp/privileges/11853991846241099498",
"http://marklogic.com/xdmp/privileges/11874383695411237039",
"http://marklogic.com/xdmp/privileges/11887607177646862698",
"http://marklogic.com/xdmp/privileges/11916731797517001922",
"http://marklogic.com/xdmp/privileges/11956246706336945065",
"http://marklogic.com/xdmp/privileges/12021954391191398808",
"http://marklogic.com/xdmp/privileges/12042588961447705503",
"http://marklogic.com/xdmp/privileges/12081928611090122529",
"http://marklogic.com/xdmp/privileges/12226350631595843102",
"http://marklogic.com/xdmp/privileges/12247220021199329641",
"http://marklogic.com/xdmp/privileges/12384818660433951728",
"http://marklogic.com/xdmp/privileges/1240839469977639069",
"http://marklogic.com/xdmp/privileges/12433590908672210086",
"http://marklogic.com/xdmp/privileges/12518929594164912198",
"http://marklogic.com/xdmp/privileges/12522528814599301265",
"http://marklogic.com/xdmp/privileges/12539169025986580407",
"http://marklogic.com/xdmp/privileges/12585578905185657980",
"http://marklogic.com/xdmp/privileges/12639658607708686754",
"http://marklogic.com/xdmp/privileges/12644295717427269798",
"http://marklogic.com/xdmp/privileges/12671021034500740677",
"http://marklogic.com/xdmp/privileges/12695438235280204271",
"http://marklogic.com/xdmp/privileges/12710248291459191200",
"http://marklogic.com/xdmp/privileges/12870606785255269010",
"http://marklogic.com/xdmp/privileges/12915866253722694072",
"http://marklogic.com/xdmp/privileges/1297808177436252592",
"http://marklogic.com/xdmp/privileges/12996607685756188396",
"http://marklogic.com/xdmp/privileges/13007737506849619254",
"http://marklogic.com/xdmp/privileges/13087468915064319943",
"http://marklogic.com/xdmp/privileges/13088601869030568426",
"http://marklogic.com/xdmp/privileges/13196934347858662544",
"http://marklogic.com/xdmp/privileges/13254546044462046539",
"http://marklogic.com/xdmp/privileges/1330414103878567310",
"http://marklogic.com/xdmp/privileges/13310519578237961403",
"http://marklogic.com/xdmp/privileges/13461421108119209700",
"http://marklogic.com/xdmp/privileges/13479160983475199315",
"http://marklogic.com/xdmp/privileges/13722235030664640832",
"http://marklogic.com/xdmp/privileges/1373155636098072814",
"http://marklogic.com/xdmp/privileges/13805394000451445505",
"http://marklogic.com/xdmp/privileges/13934535075606483711",
"http://marklogic.com/xdmp/privileges/13950341791091809097",
"http://marklogic.com/xdmp/privileges/13982529762393888860",
"http://marklogic.com/xdmp/privileges/14035797522341958061",
"http://marklogic.com/xdmp/privileges/1416348959980061919",
"http://marklogic.com/xdmp/privileges/14178228123538205688",
"http://marklogic.com/xdmp/privileges/14276438265070073250",
"http://marklogic.com/xdmp/privileges/14337040293519151320",
"http://marklogic.com/xdmp/privileges/14504517162877394354",
"http://marklogic.com/xdmp/privileges/1472271773661482718",
"http://marklogic.com/xdmp/privileges/14759190652612357588",
"http://marklogic.com/xdmp/privileges/1476259666329767431",
"http://marklogic.com/xdmp/privileges/14764074670022763860",
"http://marklogic.com/xdmp/privileges/14776116320791241770",
"http://marklogic.com/xdmp/privileges/14886039852989405648",
"http://marklogic.com/xdmp/privileges/14909648852511699760",
"http://marklogic.com/xdmp/privileges/14968386551794125002",
"http://marklogic.com/xdmp/privileges/15015910971976609581",
"http://marklogic.com/xdmp/privileges/15172269428407425039",
"http://marklogic.com/xdmp/privileges/15254610670467404960",
"http://marklogic.com/xdmp/privileges/15288064173853685831",
"http://marklogic.com/xdmp/privileges/15363000268029066570",
"http://marklogic.com/xdmp/privileges/15416688611779632782",
"http://marklogic.com/xdmp/privileges/15442028271277394230",
"http://marklogic.com/xdmp/privileges/15531241610798647059",
"http://marklogic.com/xdmp/privileges/15542719199925886771",
"http://marklogic.com/xdmp/privileges/15599680825876537841",
"http://marklogic.com/xdmp/privileges/15628968484292289960",
"http://marklogic.com/xdmp/privileges/15700543975323571931",
"http://marklogic.com/xdmp/privileges/15715503155605494783",
"http://marklogic.com/xdmp/privileges/15717949258293480809",
"http://marklogic.com/xdmp/privileges/15779339172433512555",
"http://marklogic.com/xdmp/privileges/15821029287265437009",
"http://marklogic.com/xdmp/privileges/15864476773658532460",
"http://marklogic.com/xdmp/privileges/15865059979009009172",
"http://marklogic.com/xdmp/privileges/16110053689484916016",
"http://marklogic.com/xdmp/privileges/16135621603671160447",
"http://marklogic.com/xdmp/privileges/16412788767712470205",
"http://marklogic.com/xdmp/privileges/16416905194952286005",
"http://marklogic.com/xdmp/privileges/16559907011868578319",
"http://marklogic.com/xdmp/privileges/1656223749952672724",
"http://marklogic.com/xdmp/privileges/16611250134493323885",
"http://marklogic.com/xdmp/privileges/16665136648348525060",
"http://marklogic.com/xdmp/privileges/16697173285890186395",
"http://marklogic.com/xdmp/privileges/16818736789011311717",
"http://marklogic.com/xdmp/privileges/16840937334621997811",
"http://marklogic.com/xdmp/privileges/16850561161621940270",
"http://marklogic.com/xdmp/privileges/16945929641853075698",
"http://marklogic.com/xdmp/privileges/16960311497977864612",
"http://marklogic.com/xdmp/privileges/16964780687539757722",
"http://marklogic.com/xdmp/privileges/17020305072002727666",
"http://marklogic.com/xdmp/privileges/17037674006957652672",
"http://marklogic.com/xdmp/privileges/17038013161154488085",
"http://marklogic.com/xdmp/privileges/17052540259156866444",
"http://marklogic.com/xdmp/privileges/17156229723684041614",
"http://marklogic.com/xdmp/privileges/17183839434300461792",
"http://marklogic.com/xdmp/privileges/17222399886057181656",
"http://marklogic.com/xdmp/privileges/17270270410135975786",
"http://marklogic.com/xdmp/privileges/17297593411100424072",
"http://marklogic.com/xdmp/privileges/17415809186423587566",
"http://marklogic.com/xdmp/privileges/17447686086454670907",
"http://marklogic.com/xdmp/privileges/17524892422887191836",
"http://marklogic.com/xdmp/privileges/1759221589928165057",
"http://marklogic.com/xdmp/privileges/17745889120454537280",
"http://marklogic.com/xdmp/privileges/17968797348095654613",
"http://marklogic.com/xdmp/privileges/18051382955516954486",
"http://marklogic.com/xdmp/privileges/1807070126720634547",
"http://marklogic.com/xdmp/privileges/18079623418978294039",
"http://marklogic.com/xdmp/privileges/18132417301463916702",
"http://marklogic.com/xdmp/privileges/18165292587514063837",
"http://marklogic.com/xdmp/privileges/18222745076581525716",
"http://marklogic.com/xdmp/privileges/18296407283837946438",
"http://marklogic.com/xdmp/privileges/18325003700485014220",
"http://marklogic.com/xdmp/privileges/18343905639511442224",
"http://marklogic.com/xdmp/privileges/18402809574030735535",
"http://marklogic.com/xdmp/privileges/1862826070778518079",
"http://marklogic.com/xdmp/privileges/1896284200693604585",
"http://marklogic.com/xdmp/privileges/1951058393526195658",
"http://marklogic.com/xdmp/privileges/197076216580429933",
"http://marklogic.com/xdmp/privileges/2137009191514104168",
"http://marklogic.com/xdmp/privileges/220835612601128473",
"http://marklogic.com/xdmp/privileges/2392717618608237860",
"http://marklogic.com/xdmp/privileges/2397875937300882038",
"http://marklogic.com/xdmp/privileges/2465503894167437668",
"http://marklogic.com/xdmp/privileges/2516042715279056130",
"http://marklogic.com/xdmp/privileges/2698206476156080620",
"http://marklogic.com/xdmp/privileges/2773584977928061832",
"http://marklogic.com/xdmp/privileges/2861745757645063802",
"http://marklogic.com/xdmp/privileges/2871548141507137316",
"http://marklogic.com/xdmp/privileges/2967699609573157986",
"http://marklogic.com/xdmp/privileges/2984235383105076940",
"http://marklogic.com/xdmp/privileges/3161570577035890012",
"http://marklogic.com/xdmp/privileges/3258484044533441772",
"http://marklogic.com/xdmp/privileges/3262328454228825149",
"http://marklogic.com/xdmp/privileges/3262491771412924307",
"http://marklogic.com/xdmp/privileges/3292068243682494683",
"http://marklogic.com/xdmp/privileges/3324980459537649920",
"http://marklogic.com/xdmp/privileges/3377748135714027098",
"http://marklogic.com/xdmp/privileges/3388451059613972879",
"http://marklogic.com/xdmp/privileges/3611182833604438869",
"http://marklogic.com/xdmp/privileges/3627079415249671350",
"http://marklogic.com/xdmp/privileges/3651701130642007835",
"http://marklogic.com/xdmp/privileges/3715915778843847089",
"http://marklogic.com/xdmp/privileges/3812897941409131395",
"http://marklogic.com/xdmp/privileges/3875066252226500775",
"http://marklogic.com/xdmp/privileges/3968160131237885979",
"http://marklogic.com/xdmp/privileges/404096701398583804",
"http://marklogic.com/xdmp/privileges/4047373811539026367",
"http://marklogic.com/xdmp/privileges/4051831416875892954",
"http://marklogic.com/xdmp/privileges/4182879108777316128",
"http://marklogic.com/xdmp/privileges/4280188296956865691",
"http://marklogic.com/xdmp/privileges/4290528159008502219",
"http://marklogic.com/xdmp/privileges/4345050657431183289",
"http://marklogic.com/xdmp/privileges/4371890984564774506",
"http://marklogic.com/xdmp/privileges/4380651559088151949",
"http://marklogic.com/xdmp/privileges/4511339148768217545",
"http://marklogic.com/xdmp/privileges/4525322158929948315",
"http://marklogic.com/xdmp/privileges/4746393683220309111",
"http://marklogic.com/xdmp/privileges/4811997515220150927",
"http://marklogic.com/xdmp/privileges/4843871037618149053",
"http://marklogic.com/xdmp/privileges/4901090549390038002",
"http://marklogic.com/xdmp/privileges/4967718481264016147",
"http://marklogic.com/xdmp/privileges/5017539124105117050",
"http://marklogic.com/xdmp/privileges/5033175514512230261",
"http://marklogic.com/xdmp/privileges/5098976399673832203",
"http://marklogic.com/xdmp/privileges/5105561712773573421",
"http://marklogic.com/xdmp/privileges/517484409394300748",
"http://marklogic.com/xdmp/privileges/521288112650493002",
"http://marklogic.com/xdmp/privileges/5271934720714810516",
"http://marklogic.com/xdmp/privileges/5296818274880435055",
"http://marklogic.com/xdmp/privileges/5436021855594735938",
"http://marklogic.com/xdmp/privileges/5462506695095683763",
"http://marklogic.com/xdmp/privileges/5464316177913647784",
"http://marklogic.com/xdmp/privileges/5475474029512651192",
"http://marklogic.com/xdmp/privileges/5571755030928492606",
"http://marklogic.com/xdmp/privileges/5581892712521274299",
"http://marklogic.com/xdmp/privileges/5767909206400142047",
"http://marklogic.com/xdmp/privileges/5894963475819355018",
"http://marklogic.com/xdmp/privileges/5905484370290881188",
"http://marklogic.com/xdmp/privileges/5979269489896483846",
"http://marklogic.com/xdmp/privileges/6049057672193294579",
"http://marklogic.com/xdmp/privileges/6085359833502418122",
"http://marklogic.com/xdmp/privileges/6108161424467930749",
"http://marklogic.com/xdmp/privileges/6121632564557146311",
"http://marklogic.com/xdmp/privileges/6161990975573267553",
"http://marklogic.com/xdmp/privileges/6226129278634019154",
"http://marklogic.com/xdmp/privileges/6466815878258061523",
"http://marklogic.com/xdmp/privileges/6689710763675089959",
"http://marklogic.com/xdmp/privileges/6708777376211482104",
"http://marklogic.com/xdmp/privileges/6794908587610853068",
"http://marklogic.com/xdmp/privileges/6844229428238485042",
"http://marklogic.com/xdmp/privileges/6866748295311171023",
"http://marklogic.com/xdmp/privileges/6985983344728857156",
"http://marklogic.com/xdmp/privileges/7019044502732319181",
"http://marklogic.com/xdmp/privileges/7055716246290594950",
"http://marklogic.com/xdmp/privileges/7072856454801037072",
"http://marklogic.com/xdmp/privileges/7118751578424258551",
"http://marklogic.com/xdmp/privileges/7320703446819589837",
"http://marklogic.com/xdmp/privileges/7364627984199465753",
"http://marklogic.com/xdmp/privileges/7395287933956414102",
"http://marklogic.com/xdmp/privileges/7511896933215408170",
"http://marklogic.com/xdmp/privileges/7611025767969592361",
"http://marklogic.com/xdmp/privileges/7703120377443487768",
"http://marklogic.com/xdmp/privileges/7752783223708232837",
"http://marklogic.com/xdmp/privileges/7768816571421711260",
"http://marklogic.com/xdmp/privileges/7780632727003383150",
"http://marklogic.com/xdmp/privileges/7904915109122980624",
"http://marklogic.com/xdmp/privileges/7997477228778470643",
"http://marklogic.com/xdmp/privileges/8037001996786320339",
"http://marklogic.com/xdmp/privileges/8100434549297799089",
"http://marklogic.com/xdmp/privileges/8102556235231700250",
"http://marklogic.com/xdmp/privileges/838954581630650768",
"http://marklogic.com/xdmp/privileges/8495629150645827351",
"http://marklogic.com/xdmp/privileges/8578744968596014205",
"http://marklogic.com/xdmp/privileges/8609039668926324539",
"http://marklogic.com/xdmp/privileges/8652603273878747961",
"http://marklogic.com/xdmp/privileges/8770508706637797734",
"http://marklogic.com/xdmp/privileges/8806040854971245471",
"http://marklogic.com/xdmp/privileges/8833735393794172438",
"http://marklogic.com/xdmp/privileges/8844767327654231760",
"http://marklogic.com/xdmp/privileges/886778314188512901",
"http://marklogic.com/xdmp/privileges/8881792332174086642",
"http://marklogic.com/xdmp/privileges/8890662794728290380",
"http://marklogic.com/xdmp/privileges/8916952780577488741",
"http://marklogic.com/xdmp/privileges/8920551179019002722",
"http://marklogic.com/xdmp/privileges/8932062844115889256",
"http://marklogic.com/xdmp/privileges/8954403999592414152",
"http://marklogic.com/xdmp/privileges/8986500661470818605",
"http://marklogic.com/xdmp/privileges/9076765644782657689",
"http://marklogic.com/xdmp/privileges/9132054075916124063",
"http://marklogic.com/xdmp/privileges/9170239739472492157",
"http://marklogic.com/xdmp/privileges/9212223795024502401",
"http://marklogic.com/xdmp/privileges/9230786184163395570",
"http://marklogic.com/xdmp/privileges/92637488436223009",
"http://marklogic.com/xdmp/privileges/9342903743709059705",
"http://marklogic.com/xdmp/privileges/935540736527522019",
"http://marklogic.com/xdmp/privileges/9492944466679244625",
"http://marklogic.com/xdmp/privileges/9577965919156659563",
"http://marklogic.com/xdmp/privileges/9622626433320094668",
"http://marklogic.com/xdmp/privileges/9712551169971851749",
"http://marklogic.com/xdmp/privileges/9738669346861786607",
"http://marklogic.com/xdmp/privileges/989334918785501433",
"http://marklogic.com/xdmp/privileges/9918523470346202158",
"http://marklogic.com/xdmp/privileges/9929853329379787518",
"http://marklogic.com/xdmp/privileges/9967544026441308861",
"http://marklogic.com/xdmp/roles/10159062938643135596",
"http://marklogic.com/xdmp/roles/10750405834310389440",
"http://marklogic.com/xdmp/roles/1088529792688125909",
"http://marklogic.com/xdmp/roles/10897771640104659159",
"http://marklogic.com/xdmp/roles/11360746927644499389",
"http://marklogic.com/xdmp/roles/11455071482044532664",
"http://marklogic.com/xdmp/roles/12116624312845666538",
"http://marklogic.com/xdmp/roles/12773061729023600875",
"http://marklogic.com/xdmp/roles/12859270053073389585",
"http://marklogic.com/xdmp/roles/12918594585954410177",
"http://marklogic.com/xdmp/roles/13127110976310685970",
"http://marklogic.com/xdmp/roles/13709439639513089771",
"http://marklogic.com/xdmp/roles/13765652144559195834",
"http://marklogic.com/xdmp/roles/14623746545831083551",
"http://marklogic.com/xdmp/roles/14918370877051183774",
"http://marklogic.com/xdmp/roles/15193361718721594465",
"http://marklogic.com/xdmp/roles/15694900380532585189",
"http://marklogic.com/xdmp/roles/1629356164104750581",
"http://marklogic.com/xdmp/roles/16675984334178111809",
"http://marklogic.com/xdmp/roles/17110332260817694116",
"http://marklogic.com/xdmp/roles/17602051366079166237",
"http://marklogic.com/xdmp/roles/17777884224132111009",
"http://marklogic.com/xdmp/roles/17806896949821005466",
"http://marklogic.com/xdmp/roles/17941785484941553029",
"http://marklogic.com/xdmp/roles/18173210627531909424",
"http://marklogic.com/xdmp/roles/1945157560747295983",
"http://marklogic.com/xdmp/roles/2143699322173858451",
"http://marklogic.com/xdmp/roles/21638106499273483",
"http://marklogic.com/xdmp/roles/2946732501308473329",
"http://marklogic.com/xdmp/roles/3330345591966850003",
"http://marklogic.com/xdmp/roles/3839456583215209392",
"http://marklogic.com/xdmp/roles/3855349555012759983",
"http://marklogic.com/xdmp/roles/5189219641378676758",
"http://marklogic.com/xdmp/roles/6379823953448655712",
"http://marklogic.com/xdmp/roles/65021309863585693",
"http://marklogic.com/xdmp/roles/6991745490888355329",
"http://marklogic.com/xdmp/roles/7482704131174481508",
"http://marklogic.com/xdmp/roles/7713891819107066658",
"http://marklogic.com/xdmp/roles/7891701409202970449",
"http://marklogic.com/xdmp/roles/8358363863691747389",
"http://marklogic.com/xdmp/roles/8487823278258687528",
"http://marklogic.com/xdmp/roles/8950790268580922626",
"http://marklogic.com/xdmp/roles/9044462619143690495",
"http://marklogic.com/xdmp/roles/9406684170329192002",
"http://marklogic.com/xdmp/roles/955540787157434453",
"http://marklogic.com/xdmp/roles/9559731956173017280",
"http://marklogic.com/xdmp/roles/9647749650784645323",
"http://marklogic.com/xdmp/users/10306463041007996463",
"http://marklogic.com/xdmp/users/14225358231155186968",
"http://marklogic.com/xdmp/users/7071164303237443533");
(: Find all Security items that are not installed in MarkLogic 5.0-5 by default and load them into an intermediary database for XQSync :)
for $i in cts:uris()
where not(local:seq-contains($i, $ML5-DEFAULT-SECURITY-URIS))
return xdmp:eval('xquery version "1.0-ml";
declare variable $URI as xs:string external;
declare variable $DOC as document-node() external;
declare variable $COLLECTIONS as xs:string external;
xdmp:document-insert( $URI, $DOC, xdmp:default-permissions(), fn:tokenize($COLLECTIONS,"~") )',
(
xs:QName("URI"), $i,
xs:QName("DOC"), fn:doc($i),
xs:QName("COLLECTIONS"), fn:string-join(xdmp:document-get-collections($i), "~")
),
<options xmlns="xdmp:eval">
<isolation>different-transaction</isolation>
<prevent-deadlocks>true</prevent-deadlocks>
<database>{xdmp:database($SECURITY-DATABASE-NAME)}</database>
</options>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment