---
title: "DFC own Administrator permission"
author: "kyh8408"
date: "2010-10-27T14:54:00Z"
tags: []
categories: ["编程语言"]
slug: "dfc-own-administrator-permission"
draft: false
lastmod: "2010-11-05T09:17:00Z"
id: 795532
url: "https://kyh8408.iteye.com/blog/795532"
---

1.add user to dm_superusers_dynamic role and set role's dynamic

dfSession.addDynamicGroup("dm_superusers_dynamic");
//write you custom code here 
dfSession.removeDynamicGroup("dm_superusers_dynamic");