---
title: "identityManager.listGrantableRoles()的问题 "
author: "duyunfengsolo"
date: "2009-06-24T13:52:23Z"
tags: ["Access"]
slug: "identitymanager-listgrantableroles"
draft: false
lastmod: "2009-06-24T16:08:04Z"
id: 414097
url: "https://solodu.iteye.com/blog/414097"
---

最近碰到了很棘手的问题，为什么我的页面中用identityManager.listGrantableRoles()想列出所有的role，但是没有出来效果。后来我就试着去后台打印下，结果它的长度是0,这个就非常郁闷了。而且我又试着去打印identityManager.listRoles().size()这个结果更是令我感到意外，它报告错误说我没有权限，Error: You don't have permission to access this resource . 这两个问题还没有解决。解决中...... 